Thomas
7 年前
当前提交
40603f1c
共有 3 个文件被更改,包括 141 次插入 和 0 次删除
-
88ScriptableRenderPipeline/Core/Editor/CoreEditorUtils.cs
-
42ScriptableRenderPipeline/Core/Editor/CoreEditorStyles.cs
-
11ScriptableRenderPipeline/Core/Editor/CoreEditorStyles.cs.meta
|
|||
using UnityEngine; |
|||
|
|||
namespace UnityEditor.Experimental.Rendering |
|||
{ |
|||
public static class CoreEditorStyles |
|||
{ |
|||
public static readonly GUIStyle smallTickbox; |
|||
public static readonly GUIStyle miniLabelButton; |
|||
|
|||
public static readonly Texture2D paneOptionsIconDark; |
|||
public static readonly Texture2D paneOptionsIconLight; |
|||
|
|||
static CoreEditorStyles() |
|||
{ |
|||
smallTickbox = new GUIStyle("ShurikenCheckMark"); |
|||
|
|||
var transparentTexture = new Texture2D(1, 1, TextureFormat.ARGB32, false); |
|||
transparentTexture.SetPixel(0, 0, Color.clear); |
|||
transparentTexture.Apply(); |
|||
|
|||
miniLabelButton = new GUIStyle(EditorStyles.miniLabel); |
|||
miniLabelButton.normal = new GUIStyleState |
|||
{ |
|||
background = transparentTexture, |
|||
scaledBackgrounds = null, |
|||
textColor = Color.grey |
|||
}; |
|||
var activeState = new GUIStyleState |
|||
{ |
|||
background = transparentTexture, |
|||
scaledBackgrounds = null, |
|||
textColor = Color.white |
|||
}; |
|||
miniLabelButton.active = activeState; |
|||
miniLabelButton.onNormal = activeState; |
|||
miniLabelButton.onActive = activeState; |
|||
|
|||
paneOptionsIconDark = (Texture2D)EditorGUIUtility.Load("Builtin Skins/DarkSkin/Images/pane options.png"); |
|||
paneOptionsIconLight = (Texture2D)EditorGUIUtility.Load("Builtin Skins/LightSkin/Images/pane options.png"); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 106fd77ef6b30234597e56c849578bad |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue