UNPKG

com.phantomsxr.xrmodpackagetools

Version:

XR-MOD is a derivative based on Unity ARFoundation. Using the technical concept of MOD in the game allows XR creators to develop their own AR creative interactive experience. This tool is an extension of XR-MOD, used to generate XR-MOD identifiable resour

35 lines (31 loc) 1.05 kB
// // /*=============================================================================== // // 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<T> { private T value; /// <summary> /// This Action will be called when the value changes. /// </summary> public UnityEvent<T> OnChanged = new(); public T Value { get { return value; } set { this.value = value; OnChanged?.Invoke(this.value); } } } }