// /*=============================================================================== // Copyright (C) 2020 PhantomsXR Ltd. All Rights Reserved. // // This file is part of the XR-MOD SDK. // // The XR-MOD SDK cannot be copied, distributed, or made available to // third-parties for commercial purposes without written permission of PhantomsXR Ltd. // // Contact nswell@phantomsxr.com for licensing requests. // ===============================================================================*/ using System; using System.Collections.Generic; using UnityFusion.Runtime.Enviorment; namespace Phantom.XRMOD.UnityFusion.Runtime.CodeHook { /// /// Represents the metadata and state of a runtime script to be bound to a GameObject. /// [System.Serializable] public class MonoData { /// The namespace of the class. public string ClassNamespace; /// The name of the class. public string ClassName; /// The list of fields and their values for this script instance. public List Fields = new(); /// Indicates if the data has been bound to the instance. public bool BoundData = false; /// Indicates if the script has been added to the GameObject. public bool Added = false; /// Indicates if the script has been activated/enabled. public bool Activated = false; /// The cross-binding adaptor instance (ILRuntime/CLR bridge). public CrossBindingAdaptorType ClrInstance; /// The actual System.Type of the class. public Type ClassType; } /// /// Defines the visibility/rendering state of a GameObject. /// public enum RenderStateType { /// No change to render state. None, /// Set the GameObject to visible/active. Visiable, /// Set the GameObject to hidden/inactive. Hiden } }