private void CreateModelCallback(RMI.RMITask inTask) { GameObject modelGo = inTask.ImportedObject; Utilities.SetLayerRecursively(modelGo, LayerMask.NameToLayer("UI 3D")); modelGo.transform.parent = modelContainer; modelGo.transform.localPosition = controller.modelPosition; modelGo.name = "View State Model"; Utilities.NormalizeMeshSize(modelGo); var windowButton = GetComponent <UIWindowButton>(); windowButton.action = UIWindowButton.Action.Show; windowButton.WindowAction(); windowButton.action = UIWindowButton.Action.DoNothing; }
private void EndCallBack(RMI.RMITask inTask) { GameObject modelGo = inTask.ImportedObject; Utilities.SetLayerRecursively(modelGo, LayerMask.NameToLayer("UI 3D")); modelGo.transform.parent = modelContainer; modelGo.transform.localPosition = modelPosition; modelGo.name = modelName; Utilities.NormalizeMeshSize(modelGo); previousLoadedModelPath = inTask.FilePath; windowButton.action = UIWindowButton.Action.Show; windowButton.WindowAction(); windowButton.action = UIWindowButton.Action.DoNothing; }