// // /*=============================================================================== // // Copyright (C) 2024 PhantomsXR Ltd. All Rights Reserved. // // // // This file is part of the Phantom.XRMOD.PackageTools.Editor. // // // // The AVPPlatform cannot be copied, distributed, or made available to // // third-parties for commercial purposes without written permission of PhantomsXR Ltd. // // // // Contact info@phantomsxr.com for licensing requests. // // ===============================================================================*/ using UnityEngine.Events; namespace #NAMESPACE#.Runtime { public class BindableProperty { private T value; /// /// This Action will be called when the value changes. /// public UnityEvent OnChanged = new(); public T Value { get { return value; } set { this.value = value; OnChanged?.Invoke(this.value); } } } }