コード例 #1
0
        public override void OnInit(XTimelineObject t)
        {
            @select      = false;
            showChild    = true;
            isSkillHost  = false;
            addtiveColor = Color.white;
            track        = (XTrack)t;
            var flag = (TrackFlagAttribute)Attribute.GetCustomAttribute(t.GetType(), typeof(TrackFlagAttribute));

            allowClip = flag.allowClip;
            if (_addclip == null)
            {
                _addclip  = EditorGUIUtility.TrTextContent("Add Clip \t #a");
                _unselect = EditorGUIUtility.TrTextContent("UnSelect All  \t #u");
                _select   = EditorGUIUtility.TrTextContent("Select All Tracks \t %#s");
                delete    = EditorGUIUtility.TrTextContent("Delete Clip\t #d");
                copy      = EditorGUIUtility.TrTextContent("Copy Track\t #c");
                paste     = EditorGUIUtility.TrTextContent("Paste Track\t #p");
            }
        }