void OnEnable() { EUtil.LoadAsset(ref ms_inspectTex, ASSET_InspectIcon); m_spPlayOnStart = serializedObject.FindProperty(SP_PlayOnStart); m_spTakes = serializedObject.FindProperty(SP_Takes); Dbg.Assert(m_spPlayOnStart != null, "AnimatorDataEditor.OnEnable: failed to find property: {0}", SP_PlayOnStart); Dbg.Assert(m_spTakes != null, "AnimatorDataEditor.OnEnable: failed to find property: {0}", SP_Takes); }
// unity event handlers void OnEnable() { EUtil.LoadAsset(ref ms_icon, ASSET_ICON); m_spName = serializedObject.FindProperty("_name"); m_spNumFrames = serializedObject.FindProperty("numFrames"); m_spFps = serializedObject.FindProperty("frameRate"); Dbg.Assert(m_spName != null, "AMTakeEditor.OnEnable: failed to find property: _name"); Dbg.Assert(m_spNumFrames != null, "AMTakeEditor.OnEnable: failed to find property: numFrames"); Dbg.Assert(m_spFps != null, "AMTakeEditor.OnEnable: failed to find property: frameRate"); }