浏览代码

Added PlayableDirector to Possible Actions in Discover.

/main
Thomas ICHÉ 5 年前
当前提交
9026a4f0
共有 1 个文件被更改,包括 11 次插入0 次删除
  1. 11
      Editor/Discover/DiscoverEditor.cs

11
Editor/Discover/DiscoverEditor.cs


using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
using UnityEngine.Playables;
#if UNITY_2019_3_OR_NEWER
using UnityEngine.VFX;
#else

{
TimelineAsset timeline = target as TimelineAsset;
AssetDatabase.OpenAsset(timeline);
}
}
else if (t == typeof(PlayableDirector))
{
if (GUILayout.Button("Open Director"))
{
PlayableDirector director = target as PlayableDirector;
AssetDatabase.OpenAsset(director.playableAsset);
Selection.activeObject = director.gameObject;
}
}
else if (t == typeof(Shader))

正在加载...
取消
保存