This commit is contained in:
Mikhail 2024-04-29 17:42:24 +08:00
parent 2ad70a48bc
commit 0252f9e0a5

View File

@ -78,17 +78,19 @@
#if ENABLE_IL2CPP #if ENABLE_IL2CPP
// Unity IL2CPP performance optimization attribute. // Unity IL2CPP performance optimization attribute.
namespace Unity.IL2CPP.CompilerServices { namespace Unity.IL2CPP.CompilerServices
enum Option { {
using System;
enum Option
{
NullChecks = 1, NullChecks = 1,
ArrayBoundsChecks = 2 ArrayBoundsChecks = 2
} }
[AttributeUsage (AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)] [AttributeUsage (AttributeTargets.Class | AttributeTargets.Method | AttributeTargets.Property, Inherited = false, AllowMultiple = true)]
class Il2CppSetOptionAttribute : Attribute { class Il2CppSetOptionAttribute : Attribute
{
public Option Option { get; private set; } public Option Option { get; private set; }
public object Value { get; private set; } public object Value { get; private set; }
public Il2CppSetOptionAttribute (Option option, object value) { Option = option; Value = value; } public Il2CppSetOptionAttribute (Option option, object value) { Option = option; Value = value; }
} }
} }