/// <summary> /// Resets the object's properties. /// </summary> public void Reset() { _processingCaller = null; _dataDirectory = null; #if UNITY_EDITOR ChangeDataDirectory(pathToDataFolder); #endif //UNITY_EDITOR _processingCaller = GeneralToolkit.GetParentOfType <Processing.Processing>(transform); }
/// <summary> /// On reset, reset the object's properties. /// </summary> public virtual void Reset() { renderingCaller = GeneralToolkit.GetParentOfType <Rendering.Rendering>(transform); if (renderingCaller != null) { processingCaller = renderingCaller.processing; } else { processingCaller = GeneralToolkit.GetParentOfType <Processing.Processing>(transform); } if (processingCaller != null) { dataHandler = processingCaller.dataHandler; cameraSetup = processingCaller.cameraSetup; } }
/// <summary> /// On selection, sets up the target properties. /// </summary> void OnEnable() { // Inform the target object that it has been selected. _targetObject = (Processing)serializedObject.targetObject; _targetObject.Selected(); }