// Awake(): is called when the script is first initialised void Awake() { if (!Application.isPlaying) { if (GetComponent <MeshFilter> () == null) { Debug.LogWarning(name + ".Meshedit: No MeshFilter detected on gameObject!", this.gameObject); return; } // Variable Resets m_enumPivotType = EnumPivotType.Origin; m_strMeshName = null; //m_strMeshPath = null; m_bIsDisplayOutput = false; m_bIsDisplayPivot = false; m_bIsExportMesh = false; } }
// Awake(): is called when the script is first initialised void Awake () { if (!Application.isPlaying) { if (GetComponent<MeshFilter> () == null) { Debug.LogWarning (name + ".Meshedit: No MeshFilter detected on gameObject!", this.gameObject); return; } // Variable Resets m_enumPivotType = EnumPivotType.Origin; m_strMeshName = null; //m_strMeshPath = null; m_bIsDisplayOutput = false; m_bIsDisplayPivot = false; m_bIsExportMesh = false; } }