This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// VersionDefines を用いて「Localization v1.4.2 を用いていたら」的な Precompile Macro や、「Unity 2022.1.16f1 以上なら」みたいな条件を設定しても良いかも。 | |
#if UNITY_EDITOR_OSX && UNITY_IOS | |
using System.Diagnostics; | |
using System.IO; | |
using UnityEditor; | |
using UnityEditor.Compilation; | |
using UnityEngine.Localization.Settings; | |
using PackageInfo = UnityEditor.PackageManager.PackageInfo; | |
namespace Monry.Editor.Workaround |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# General | |
*.DS_Store | |
.AppleDouble | |
.LSOverride | |
.envrc | |
# Icon must end with two \r | |
#Icon | |
# Thumbnails |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[*] | |
charset = utf-8 | |
end_of_line = lf | |
trim_trailing_whitespace = true | |
insert_final_newline = true | |
indent_style = space | |
indent_size = 4 | |
# Microsoft .NET properties | |
csharp_new_line_before_members_in_object_initializers = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Diagnostics.CodeAnalysis; | |
using UnityEditor; | |
using UnityEditor.UIElements; | |
using UnityEngine; | |
using UnityEngine.UIElements; | |
namespace Monry.Editor.Extensions | |
{ | |
/// <summary> | |
/// 全てのインスペクタ表示を IMGUI から UIToolkit ベースに切り替える |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using UnityEngine; | |
namespace Monry | |
{ | |
public class Sample : MonoBehaviour | |
{ | |
[field: SerializeField] private int IntValue { get; set; } | |
[field: SerializeField] private bool BoolValue { get; set; } | |
[field: SerializeField] private string StringValue { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// snip | |
"dependencies": { | |
"com.unity.addressables": "1.17.15", | |
"com.unity.test-framework": "1.1.22", | |
"com.unity.textmeshpro": "3.0.4", | |
"com.unity.timeline": "1.4.5" | |
}, | |
"gitDependencies": { | |
"com.cysharp.unitask": "git+ssh://[email protected]/Cysharp/UniTask.git?path=/src/UniTask/Assets/Plugins/UniTask/#2.2.4", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- fileFormatVersion: 2 | |
+fileFormatVersion: 2 | |
guid: 2c28c3f5a6854c73942c0d6bd78eb7f2 | |
-timeCreated: 1607929643 | |
\ No newline at end of file | |
+MonoImporter: | |
+ externalObjects: {} | |
+ serializedVersion: 2 | |
+ defaultReferences: [] | |
+ executionOrder: 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
namespace Monry | |
{ | |
public class SerializeIEnumerable : MonoBehaviour | |
{ | |
private void Start() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Linq; | |
using System.Text.RegularExpressions; | |
using UnityEditor; | |
namespace Monry | |
{ | |
public static class SerializedPropertyExtensions | |
{ | |
public static SerializedProperty FindParentProperty(this SerializedProperty serializedProperty) | |
{ |
NewerOlder