mirror of
https://github.com/DCFApixels/DragonECS.git
synced 2025-09-18 01:44:35 +08:00
add Il2CppSetOptionAttribute
This commit is contained in:
parent
4bc60072ed
commit
2ad70a48bc
@ -72,3 +72,24 @@
|
|||||||
//#if UNITY_2020_3_OR_NEWER
|
//#if UNITY_2020_3_OR_NEWER
|
||||||
// [UnityEngine.Scripting.RequireDerived, UnityEngine.Scripting.Preserve]
|
// [UnityEngine.Scripting.RequireDerived, UnityEngine.Scripting.Preserve]
|
||||||
//#endif
|
//#endif
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
#if ENABLE_IL2CPP
|
||||||
|
// Unity IL2CPP performance optimization attribute.
|
||||||
|
namespace Unity.IL2CPP.CompilerServices {
|
||||||
|
enum Option {
|
||||||
|
NullChecks = 1,
|
||||||
|
ArrayBoundsChecks = 2
|
||||||
|
}
|
||||||
|
|
||||||
|
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
|
||||||
|
class Il2CppSetOptionAttribute : Attribute {
|
||||||
|
public Option Option { get; private set; }
|
||||||
|
public object Value { get; private set; }
|
||||||
|
|
||||||
|
public Il2CppSetOptionAttribute (Option option, object value) { Option = option; Value = value; }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
Loading…
Reference in New Issue
Block a user