Skip to content

Instantly share code, notes, and snippets.

View troubear's full-sized avatar

troubear troubear

View GitHub Profile
@troubear
troubear / LowOverheadAssertExample.cs
Last active January 22, 2020 09:52
Example of low overhead assertion method
#if UNITY_5_3_OR_NEWER
#define UNITY
#else
#define NON_UNITY
#endif
// Determine whether to strip assertions.
#if !(UNITY && UNITY_ASSERTIONS) && !(NON_UNITY && DEBUG)
#define STRIP_ASSERTION_METHODS
#endif
@troubear
troubear / remove_dangling_dgtrayicons.bat
Last active January 18, 2024 07:10
システムトレイアイコンの表示・非表示一覧に無限増殖するdgtrayicon.exeを一括削除するスクリプト
@echo off
pushd %~dp0
powershell -ExecutionPolicy Bypass -File ".\remove_dangling_dgtrayicons.ps1" %*
popd
pause
@troubear
troubear / .editorconfig
Last active March 1, 2025 12:24
EditorConfig setting to match Rider's SerializeField naming convention with the normal field naming convention.
# RiderのSerializeField命名規則を通常のフィールド命名規則と一致させる
dotnet_naming_rule.unity_serialized_field.resharper_description = Unity serialized field (disabled)
dotnet_naming_rule.unity_serialized_field.resharper_guid = 5f0fdb63-c892-4d2c-9324-15c80b22a7ef
dotnet_naming_rule.unity_serialized_field.severity = warning
dotnet_naming_rule.unity_serialized_field.style = unity_serialized_field
dotnet_naming_rule.unity_serialized_field.symbols = unity_serialized_field
dotnet_naming_style.unity_serialized_field.capitalization = pascal_case
dotnet_naming_symbols.unity_serialized_field.applicable_accessibilities = *
dotnet_naming_symbols.unity_serialized_field.applicable_kinds = # VS Codeに影響しないようにする
dotnet_naming_symbols.unity_serialized_field.resharper_applicable_kinds = unity_serialised_field