Example #1
0
        private void OnClickOpenTimeline()
        {
            Skill_Node              node  = Model as Skill_Node;
            TimelineGroupPath       path  = TimelineSetting.Setting.GetSearchPath <SkillTimelineGraphGroupAsset>();
            SkillTimelineGraphAsset asset = TimelineSetting.Setting.GetAsset <SkillTimelineGraphAsset>(path.searchPath, "timeline_" + node.timeline);

            if (asset != null)
            {
                TimelineWindow.Open(asset);
            }
        }
 private void DrawGraphPath(TimelineGroupPath path)
 {
     GUILayoutExtension.VerticalGroup(() =>
     {
         GUILayout.Label($"{path.typeName}", BigLabel.value);
         string newPath = MiscHelper.FolderPath("分组目录:", path.searchPath);
         if (newPath != path.searchPath)
         {
             path.searchPath = newPath;
             EditorUtility.SetDirty(settingAsset);
         }
     });
 }