浏览代码

Merge branch 'master' into vfx-demo

/main
Thomas ICHÉ 5 年前
当前提交
dc14fd41
共有 2 个文件被更改,包括 18 次插入4 次删除
  1. 20
      Editor/NewSceneWindow/NewSceneWindow.cs
  2. 2
      Editor/NewSceneWindow/SceneTemplateList.cs

20
Editor/NewSceneWindow/NewSceneWindow.cs


{
using (new GUILayout.HorizontalScope())
{
GUILayout.Label("Available Templates", EditorStyles.boldLabel, GUILayout.Width(188));
GUILayout.Label("Description", EditorStyles.boldLabel);
GUILayout.Space(8);
GUILayout.Label("Available Templates", EditorStyles.boldLabel, GUILayout.Width(188));
GUILayout.Label("Description", EditorStyles.boldLabel);
GUILayout.Space(8);
GUILayout.Space(8);
GUILayout.Space(4);
GUILayout.Space(4);
}
using (new GUILayout.HorizontalScope())
{

}
EditorGUI.EndDisabledGroup();
GUILayout.Space(4);
GUILayout.Space(8);
}
static void CreateSceneFromTemplate(SceneAsset template, bool append = false)

}
GUILayout.FlexibleSpace();
if(selectedTemplate.ScreenShot != null)
{
GUILayout.Box(GUIContent.none, GUILayout.ExpandWidth(true), GUILayout.Height(180));
Rect r = GUILayoutUtility.GetLastRect();
RectOffset off = new RectOffset(6, 6, 6, 6);
r = off.Remove(r);
EditorGUI.DrawPreviewTexture(r, selectedTemplate.ScreenShot, null, ScaleMode.ScaleAndCrop);
}
}
static class Styles

2
Editor/NewSceneWindow/SceneTemplateList.cs


public string Description;
[NonNullCheck]
public SceneAsset Scene;
public Texture2D ScreenShot;
}
}
正在加载...
取消
保存