mirror of
https://github.com/codewriter-packages/Tri-Inspector.git
synced 2025-01-22 08:18:49 -05:00
Add option to disable TriInspector drawer injection into Odin fields drawer
TRIINSPECTOR_DISABLE_ODIN_FIELDS_INJECTOR
This commit is contained in:
parent
0f619fc18f
commit
9cb68fb6ed
@ -3,6 +3,8 @@ using Sirenix.OdinInspector.Editor;
|
||||
using Sirenix.Utilities.Editor;
|
||||
using UnityEngine;
|
||||
|
||||
#if !TRIINSPECTOR_DISABLE_ODIN_FIELDS_INJECTOR
|
||||
|
||||
namespace TriInspector.Editor.Integrations.Odin
|
||||
{
|
||||
[DrawerPriority(0.0, 10000.0, 1.0)]
|
||||
@ -105,4 +107,6 @@ namespace TriInspector.Editor.Integrations.Odin
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
@ -3,6 +3,8 @@ using Sirenix.OdinInspector.Editor;
|
||||
using Sirenix.OdinInspector.Editor.Validation;
|
||||
using TriInspector.Editor.Integrations.Odin;
|
||||
|
||||
#if !TRIINSPECTOR_DISABLE_ODIN_FIELDS_INJECTOR
|
||||
|
||||
[assembly: RegisterValidator(typeof(OdinFieldValidator<>))]
|
||||
|
||||
namespace TriInspector.Editor.Integrations.Odin
|
||||
@ -69,4 +71,6 @@ namespace TriInspector.Editor.Integrations.Odin
|
||||
_propertyTree.CopyValidationResultsTo(result);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#endif
|
Loading…
Reference in New Issue
Block a user