// Only need to do this in editor due to game will not be creating/saving scenarios or lightmaps. #if UNITY_EDITOR public override object GetComponentInfo() { var componentInfo = new LSS_Models.GameObjectModel(); componentInfo.uniqueId = GetOrCreateUniqueID(gameObject).uniqueId; componentInfo.enabled = component.activeInHierarchy; // Parameter Verbose Name: Enabled return(componentInfo); }
public void SetComponentInfo(LSS_Models.GameObjectModel info) { component.SetActive(info.enabled); // Parameter Verbose Name: Enabled }