Files
Hasebe/Library/PackageCache/com.annulusgames.alchemy@1402075f473d/Samples~/Samples/Scripts/Conditionals/EnableIfSample.cs
T
2026-09-21 12:15:57 +03:00

17 lines
447 B
C#

using UnityEngine;
using Alchemy.Inspector;
namespace Alchemy.Samples
{
public class EnableIfSample : MonoBehaviour
{
public bool isEnabled;
public bool IsEnabled => isEnabled;
public bool IsEnabledMethod() => isEnabled;
[EnableIf("isEnabled")] public int enableIfField;
[EnableIf("IsEnabled")] public int enableIfProperty;
[EnableIf("IsEnabledMethod")] public int enableIfMethod;
}
}