Skip to content

Commit

Permalink
Merge branch 'release/2022.9.22'
Browse files Browse the repository at this point in the history
  • Loading branch information
Leopotam committed Sep 22, 2022
2 parents 15fbc46 + 11e8a76 commit 18a643c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 2 deletions.
24 changes: 23 additions & 1 deletion Runtime/Systems/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
using System.Reflection;
using UnityEngine;

#if ENABLE_IL2CPP
using Unity.IL2CPP.CompilerServices;
#endif

namespace Leopotam.EcsLite.Unity.Ugui {
public sealed class EcsUguiNamedAttribute : Attribute {
public readonly string Name;
Expand Down Expand Up @@ -111,4 +115,22 @@ static void AddDelHereSystems (IEcsSystems ecsSystems, EcsWorld world) {
ecsSystems.Add (new DelUguiEventSystem<EcsUguiTmpInputEndEvent> (world));
}
}
}
}

#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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "LeoECS Lite uGui Bindings",
"description": "LeoECS Lite uGui Bindings - поддержка событий uGui в ECS-мире.",
"unity": "2020.3",
"version": "2022.8.22",
"version": "2022.9.22",
"keywords": [
"leoecslite",
"leoecs",
Expand Down

0 comments on commit 18a643c

Please sign in to comment.