kg
6 年前
当前提交
49322974
共有 29 个文件被更改,包括 402 次插入 和 373 次删除
-
10Assets/UIWidgets/Resources/UIWidgets_CG.cginc
-
110Assets/UIWidgets/Resources/UIWidgets_GUIRoundedRect.shader
-
28Assets/UIWidgets/ui/painting/editor_canvas.cs
-
15Assets/UIWidgets/ui/painting/painting.cs
-
2ProjectSettings/ProjectVersion.txt
-
119Assets/UIWidgets/Resources/UIWidgets_ShadowRect.shader
-
8Assets/UIWidgets/Tests.meta
-
3Assets/UIWidgets/UIWidgets.asmdef
-
7Assets/UIWidgets/UIWidgets.asmdef.meta
-
8Assets/UIWidgets/editor.meta
-
108Assets/UIWidgets/Tests/CanvasAndLayers.cs
-
11Assets/UIWidgets/Tests/CanvasAndLayers.cs.meta
-
10Assets/UIWidgets/Tests/Menu.cs
-
11Assets/UIWidgets/Tests/Menu.cs.meta
-
14Assets/UIWidgets/Tests/Tests.asmdef
-
7Assets/UIWidgets/Tests/Tests.asmdef.meta
-
76Assets/UIWidgets/Resources/UIWidgets_ShadowMat.mat
-
8Assets/UIWidgets/Resources/UIWidgets_ShadowMat.mat.meta
-
119Assets/UIWidgets/Resources/UIWidgets_ShadowShader.shader
-
77Assets/UIWidgets/Resources/UIWidgets_2DHandlesLines.mat
-
8Assets/UIWidgets/Resources/UIWidgets_2DHandlesLines.mat.meta
-
3Assets/UIWidgets/flow/layer_canvas.cs.meta
-
10Assets/UIWidgets/flow/layer_canvas.cs
-
3Assets/UIWidgets/editor1.meta
-
0/Assets/UIWidgets/Resources/UIWidgets_2DHandlesLines.shader
-
0/Assets/UIWidgets/Resources/UIWidgets_2DHandlesLines.shader.meta
-
0/Assets/UIWidgets/Resources/UIWidgets_ShadowRect.shader.meta
-
0/Assets/UIWidgets/editor
|
|||
m_EditorVersion: 2018.2.0f2 |
|||
m_EditorVersion: 2018.2.4f1 |
|
|||
Shader "UIWidgets/ShadowRect" |
|||
{ |
|||
Properties { |
|||
_MainTex("Texture", any) = "white" {} |
|||
_SrcBlend("SrcBlend", Int) = 5 // SrcAlpha |
|||
_DstBlend("DstBlend", Int) = 10 // OneMinusSrcAlpha |
|||
} |
|||
|
|||
CGINCLUDE |
|||
#pragma vertex vert |
|||
#pragma fragment frag |
|||
#pragma target 2.5 |
|||
|
|||
#include "UnityCG.cginc" |
|||
|
|||
struct appdata_t { |
|||
float4 vertex : POSITION; |
|||
fixed4 color : COLOR; |
|||
float2 texcoord : TEXCOORD0; |
|||
}; |
|||
|
|||
struct v2f { |
|||
float4 vertex : SV_POSITION; |
|||
fixed4 color : COLOR; |
|||
float2 texcoord : TEXCOORD0; |
|||
float2 clipUV : TEXCOORD1; |
|||
float4 pos : TEXCOORD2; |
|||
}; |
|||
|
|||
sampler2D _MainTex; |
|||
uniform float4 _MainTex_ST; |
|||
uniform bool _ManualTex2SRGB; |
|||
uniform int _SrcBlend; |
|||
|
|||
uniform float _Rect[4]; |
|||
uniform float UIWidgets_sigma; |
|||
|
|||
#include "UIWidgets_CG.cginc" |
|||
|
|||
// http://madebyevan.com/shaders/fast-rounded-rectangle-shadows/ |
|||
float4 erf (float4 x) { |
|||
float4 s = sign(x); |
|||
float4 a = abs(x); |
|||
|
|||
x = 1.0 + (0.278393 + (0.230389 + 0.078108 * (a * a)) * a) * a; |
|||
x *= x; |
|||
return s - s / (x * x); |
|||
} |
|||
|
|||
float UIWidgets_boxShadow (float2 lower, float2 upper, float2 pos, float sigma) { |
|||
float4 query = float4((lower - pos).xy, (upper - pos).xy); |
|||
float4 integral = erf(query * (sqrt(0.5) / sigma)) * 0.5 + 0.5; |
|||
return (integral.z - integral.x) * (integral.w - integral.y); |
|||
} |
|||
|
|||
v2f vert (appdata_t v) { |
|||
float3 eyePos = UnityObjectToViewPos(v.vertex); |
|||
v2f o; |
|||
o.vertex = UnityObjectToClipPos(v.vertex); |
|||
o.color = v.color; |
|||
o.texcoord = TRANSFORM_TEX(v.texcoord,_MainTex); |
|||
o.clipUV = mul(UIWidgets_GUIClipMatrix, float4(eyePos.xy, 0, 1.0)); |
|||
o.pos = v.vertex; |
|||
return o; |
|||
} |
|||
|
|||
fixed4 frag (v2f i) : SV_Target { |
|||
half4 col = tex2D(_MainTex, i.texcoord); |
|||
if (_ManualTex2SRGB) { |
|||
col.rgb = LinearToGammaSpace(col.rgb); |
|||
} |
|||
col *= i.color; |
|||
|
|||
float2 p = i.pos.xy; |
|||
float shadowAlpha = UIWidgets_boxShadow( |
|||
float2(_Rect[0] + 3 * UIWidgets_sigma, _Rect[1] + 3 * UIWidgets_sigma), |
|||
float2(_Rect[0] + _Rect[2] - 3 * UIWidgets_sigma, _Rect[1] + _Rect[3] - 3 * UIWidgets_sigma), |
|||
p, UIWidgets_sigma); |
|||
col.a *= shadowAlpha; |
|||
|
|||
float pixelScale = 1.0f / abs(ddx(i.clipUV.x)); |
|||
float clipAlpha = getClipAlpha(i.clipUV, pixelScale); |
|||
col.a *= clipAlpha; |
|||
|
|||
// If the source blend is not SrcAlpha (default) we need to multiply the color by the rounded corner |
|||
// alpha factors for clipping, since it will not be done at the blending stage. |
|||
if (_SrcBlend != 5) { // 5 SrcAlpha |
|||
col.rgb *= shadowAlpha * clipAlpha; |
|||
} |
|||
return col; |
|||
} |
|||
ENDCG |
|||
|
|||
SubShader { |
|||
Blend [_SrcBlend] [_DstBlend], One OneMinusSrcAlpha |
|||
Cull Off |
|||
ZWrite Off |
|||
ZTest Always |
|||
|
|||
Pass { |
|||
CGPROGRAM |
|||
ENDCG |
|||
} |
|||
} |
|||
|
|||
SubShader { |
|||
Blend [_SrcBlend] [_DstBlend] |
|||
Cull Off |
|||
ZWrite Off |
|||
ZTest Always |
|||
|
|||
Pass { |
|||
CGPROGRAM |
|||
ENDCG |
|||
} |
|||
} |
|||
|
|||
FallBack "UIWidgets/GUITextureClip" |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 49a5e2d0e7a21443bba549be43719c88 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
{ |
|||
"name": "UIWidgets" |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 8f067a12d23d84440a407989da39a9c5 |
|||
AssemblyDefinitionImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: a9499ff15faa04b8cb4281fab5a966f1 |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System; |
|||
using System.Linq; |
|||
using UIWidgets.painting; |
|||
using UIWidgets.ui; |
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using Color = UIWidgets.ui.Color; |
|||
using Rect = UIWidgets.ui.Rect; |
|||
|
|||
namespace Editor.Tests { |
|||
public class CanvasAndLayers : EditorWindow { |
|||
private readonly Action[] _options; |
|||
|
|||
private readonly string[] _optionStrings; |
|||
|
|||
private int _selected; |
|||
|
|||
CanvasAndLayers() { |
|||
this._options = new Action[] { |
|||
this.drawPloygon4, |
|||
this.drawRect, |
|||
this.drawRectShadow, |
|||
this.drawPicture, |
|||
}; |
|||
this._optionStrings = this._options.Select(x => x.Method.Name).ToArray(); |
|||
this._selected = 0; |
|||
|
|||
this.titleContent = new GUIContent("CanvasAndLayers"); |
|||
} |
|||
|
|||
void OnGUI() { |
|||
this._selected = EditorGUILayout.Popup("test case", this._selected, this._optionStrings); |
|||
this._options[this._selected](); |
|||
} |
|||
|
|||
void drawPloygon4() { |
|||
var canvas = new EditorCanvas(); |
|||
|
|||
var paint = new Paint { |
|||
color = new Color(0xFFFF0000), |
|||
}; |
|||
|
|||
canvas.drawPloygon4( |
|||
new[] {new Offset(10, 10), new Offset(10, 110), new Offset(110, 110), new Offset(110, 10)}, |
|||
paint); |
|||
|
|||
canvas.drawPloygon4( |
|||
new[] {new Offset(10, 150), new Offset(10, 160), new Offset(140, 120), new Offset(110, 180)}, |
|||
paint); |
|||
} |
|||
|
|||
void drawRect() { |
|||
var canvas = new EditorCanvas(); |
|||
|
|||
var paint = new Paint { |
|||
color = new Color(0xFFFF0000), |
|||
}; |
|||
|
|||
canvas.drawRect( |
|||
Rect.fromLTWH(10, 10, 100, 100), |
|||
BorderWidth.only(2, 4, 6, 8), |
|||
BorderRadius.only(0, 4, 8, 16), |
|||
paint); |
|||
|
|||
paint = new Paint { |
|||
color = new Color(0xFF00FF00), |
|||
}; |
|||
|
|||
canvas.drawRect( |
|||
Rect.fromLTWH(10, 150, 100, 100), |
|||
BorderWidth.only(), |
|||
BorderRadius.only(0, 4, 8, 16), |
|||
paint); |
|||
|
|||
canvas.drawRect( |
|||
Rect.fromLTWH(150, 150, 100, 100), |
|||
BorderWidth.only(10, 12, 14, 16), |
|||
BorderRadius.only(), |
|||
paint); |
|||
} |
|||
|
|||
void drawRectShadow() { |
|||
|
|||
var canvas = new EditorCanvas(); |
|||
|
|||
var paint = new Paint { |
|||
color = new Color(0xFF00FF00), |
|||
blurSigma = 3.0, |
|||
}; |
|||
|
|||
canvas.drawRectShadow( |
|||
Rect.fromLTWH(10, 10, 100, 100), |
|||
paint); |
|||
|
|||
paint = new Paint { |
|||
color = new Color(0xFFFFFF00), |
|||
blurSigma = 2.0, |
|||
}; |
|||
|
|||
canvas.drawRectShadow( |
|||
Rect.fromLTWH(10, 150, 100, 100), |
|||
paint); |
|||
} |
|||
|
|||
void drawPicture() { |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 670ec19e3d68342e985db21ef957463c |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using UnityEditor; |
|||
|
|||
namespace Editor.Tests { |
|||
public static class Menu { |
|||
[MenuItem("UIWidgetsTests/CanvasAndLayers")] |
|||
public static void canvasAndLayers() { |
|||
EditorWindow.GetWindow(typeof(CanvasAndLayers)); |
|||
} |
|||
} |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: a00837aa7e8a44daeb1df672601c872c |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
{ |
|||
"name": "Tests", |
|||
"references": [ |
|||
"UIWidgets" |
|||
], |
|||
"optionalUnityReferences": [ |
|||
"TestAssemblies" |
|||
], |
|||
"includePlatforms": [ |
|||
"Editor" |
|||
], |
|||
"excludePlatforms": [], |
|||
"allowUnsafeCode": false |
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 32fc967a48d0e4e0ab4c508341f24e2e |
|||
AssemblyDefinitionImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!21 &2100000 |
|||
Material: |
|||
serializedVersion: 6 |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: UIWidgets_ShadowMat |
|||
m_Shader: {fileID: 4800000, guid: 1f7a328e0f36042d89a5781d0a2b9cdf, type: 3} |
|||
m_ShaderKeywords: |
|||
m_LightmapFlags: 4 |
|||
m_EnableInstancingVariants: 0 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: -1 |
|||
stringTagMap: {} |
|||
disabledShaderPasses: [] |
|||
m_SavedProperties: |
|||
serializedVersion: 3 |
|||
m_TexEnvs: |
|||
- _BumpMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailAlbedoMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailMask: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailNormalMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _EmissionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MainTex: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MetallicGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _OcclusionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _ParallaxMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _BumpScale: 1 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DstBlend: 10 |
|||
- _GlossMapScale: 1 |
|||
- _Glossiness: 0.5 |
|||
- _GlossyReflections: 1 |
|||
- _Metallic: 0 |
|||
- _Mode: 0 |
|||
- _OcclusionStrength: 1 |
|||
- _Parallax: 0.02 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _SpecularHighlights: 1 |
|||
- _SrcBlend: 5 |
|||
- _UVSec: 0 |
|||
- _ZWrite: 1 |
|||
m_Colors: |
|||
- _Color: {r: 1, g: 1, b: 1, a: 1} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|
|||
fileFormatVersion: 2 |
|||
guid: 8fb13a939b26349648cac189e4b8b0c0 |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
Shader "UIWidgets/ShadowShader" |
|||
{ |
|||
Properties { |
|||
_MainTex ("Texture", any) = "white" {} |
|||
_SrcBlend("SrcBlend", Int) = 5 // SrcAlpha |
|||
_DstBlend("DstBlend", Int) = 10 // OneMinusSrcAlpha |
|||
} |
|||
|
|||
CGINCLUDE |
|||
#pragma vertex vert |
|||
#pragma fragment frag |
|||
#pragma target 2.5 |
|||
|
|||
#include "UnityCG.cginc" |
|||
|
|||
struct appdata_t { |
|||
float4 vertex : POSITION; |
|||
fixed4 color : COLOR; |
|||
float2 texcoord : TEXCOORD0; |
|||
}; |
|||
|
|||
struct v2f { |
|||
float4 vertex : SV_POSITION; |
|||
fixed4 color : COLOR; |
|||
float2 texcoord : TEXCOORD0; |
|||
float2 clipUV : TEXCOORD1; |
|||
float4 pos : TEXCOORD2; |
|||
}; |
|||
|
|||
sampler2D _MainTex; |
|||
sampler2D _GUIClipTexture; |
|||
uniform bool _ManualTex2SRGB; |
|||
uniform int _SrcBlend; |
|||
|
|||
uniform float4 _MainTex_ST; |
|||
uniform float4x4 unity_GUIClipTextureMatrix; |
|||
|
|||
uniform float _Rect[4]; |
|||
uniform float _sigma; |
|||
|
|||
// http://madebyevan.com/shaders/fast-rounded-rectangle-shadows/ |
|||
float4 erf (float4 x) { |
|||
float4 s = sign(x); |
|||
float4 a = abs(x); |
|||
|
|||
x = 1.0 + (0.278393 + (0.230389 + 0.078108 * (a * a)) * a) * a; |
|||
x *= x; |
|||
return s - s / (x * x); |
|||
} |
|||
|
|||
float boxShadow1 (float2 lower, float2 upper, float2 pos, float sigma) { |
|||
float4 query = float4((lower - pos).xy, (upper - pos).xy); |
|||
float4 integral = erf(query * (sqrt(0.5) / sigma)) * 0.5 + 0.5; |
|||
return (integral.z - integral.x) * (integral.w - integral.y); |
|||
} |
|||
|
|||
v2f vert (appdata_t v) { |
|||
float3 eyePos = UnityObjectToViewPos(v.vertex); |
|||
v2f o; |
|||
o.vertex = UnityObjectToClipPos(v.vertex); |
|||
o.color = v.color; |
|||
o.texcoord = TRANSFORM_TEX(v.texcoord,_MainTex); |
|||
o.clipUV = mul(unity_GUIClipTextureMatrix, float4(eyePos.xy, 0, 1.0)); |
|||
o.pos = v.vertex; |
|||
return o; |
|||
} |
|||
|
|||
fixed4 frag (v2f i) : SV_Target { |
|||
half4 col = tex2D(_MainTex, i.texcoord); |
|||
if (_ManualTex2SRGB) |
|||
col.rgb = LinearToGammaSpace(col.rgb); |
|||
col *= i.color; |
|||
|
|||
float2 p = i.pos.xy; |
|||
|
|||
float clipAlpha = tex2D(_GUIClipTexture, i.clipUV).a; |
|||
col.a *= clipAlpha; |
|||
|
|||
float shadowAlpha = boxShadow1( |
|||
float2(_Rect[0] + 3 * _sigma, _Rect[1] + 3 * _sigma), |
|||
float2(_Rect[0] + _Rect[2] - 3 * _sigma, _Rect[1] + _Rect[3] - 3 * _sigma), |
|||
p, _sigma); |
|||
col.a *= shadowAlpha; |
|||
|
|||
// If the source blend is not SrcAlpha (default) we need to multiply the color by the rounded corner |
|||
// alpha factors for clipping, since it will not be done at the blending stage. |
|||
if (_SrcBlend != 5) { // 5 SrcAlpha |
|||
col.rgb *= clipAlpha; |
|||
} |
|||
return col; |
|||
} |
|||
ENDCG |
|||
|
|||
SubShader { |
|||
Blend [_SrcBlend] [_DstBlend], One OneMinusSrcAlpha |
|||
Cull Off |
|||
ZWrite Off |
|||
ZTest Always |
|||
|
|||
Pass { |
|||
CGPROGRAM |
|||
ENDCG |
|||
} |
|||
} |
|||
|
|||
SubShader { |
|||
Blend [_SrcBlend] [_DstBlend] |
|||
Cull Off |
|||
ZWrite Off |
|||
ZTest Always |
|||
|
|||
Pass { |
|||
CGPROGRAM |
|||
ENDCG |
|||
} |
|||
} |
|||
|
|||
FallBack "Hidden/Internal-GUITextureClip" |
|||
} |
|
|||
%YAML 1.1 |
|||
%TAG !u! tag:unity3d.com,2011: |
|||
--- !u!21 &2100000 |
|||
Material: |
|||
serializedVersion: 6 |
|||
m_ObjectHideFlags: 0 |
|||
m_CorrespondingSourceObject: {fileID: 0} |
|||
m_PrefabInternal: {fileID: 0} |
|||
m_Name: UIWidgets_2DHandlesLines |
|||
m_Shader: {fileID: 4800000, guid: 81e78a346e6a4cad9c4fcc54da649074, type: 3} |
|||
m_ShaderKeywords: |
|||
m_LightmapFlags: 4 |
|||
m_EnableInstancingVariants: 0 |
|||
m_DoubleSidedGI: 0 |
|||
m_CustomRenderQueue: -1 |
|||
stringTagMap: {} |
|||
disabledShaderPasses: [] |
|||
m_SavedProperties: |
|||
serializedVersion: 3 |
|||
m_TexEnvs: |
|||
- _BumpMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailAlbedoMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailMask: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _DetailNormalMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _EmissionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MainTex: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _MetallicGlossMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _OcclusionMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
- _ParallaxMap: |
|||
m_Texture: {fileID: 0} |
|||
m_Scale: {x: 1, y: 1} |
|||
m_Offset: {x: 0, y: 0} |
|||
m_Floats: |
|||
- _BumpScale: 1 |
|||
- _Cutoff: 0.5 |
|||
- _DetailNormalMapScale: 1 |
|||
- _DstBlend: 0 |
|||
- _GlossMapScale: 1 |
|||
- _Glossiness: 0.5 |
|||
- _GlossyReflections: 1 |
|||
- _HandleZTest: 8 |
|||
- _Metallic: 0 |
|||
- _Mode: 0 |
|||
- _OcclusionStrength: 1 |
|||
- _Parallax: 0.02 |
|||
- _SmoothnessTextureChannel: 0 |
|||
- _SpecularHighlights: 1 |
|||
- _SrcBlend: 1 |
|||
- _UVSec: 0 |
|||
- _ZWrite: 1 |
|||
m_Colors: |
|||
- _Color: {r: 1, g: 1, b: 1, a: 1} |
|||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1} |
|
|||
fileFormatVersion: 2 |
|||
guid: 30a1a0c9df8e6493e8df8cab5dd1adbe |
|||
NativeFormatImporter: |
|||
externalObjects: {} |
|||
mainObjectFileID: 2100000 |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
fileFormatVersion: 2 |
|||
guid: cde8bcfaf053454e96be846b7506df05 |
|||
timeCreated: 1534475158 |
|
|||
using System; |
|||
using System.Collections.Generic; |
|||
using UIWidgets.ui; |
|||
using UnityEditor; |
|||
using UnityEngine; |
|||
using Rect = UIWidgets.ui.Rect; |
|||
|
|||
namespace UIWidgets.flow { |
|||
|
|||
} |
|
|||
fileFormatVersion: 2 |
|||
guid: 531a69a207e64172959ffbed66131560 |
|||
timeCreated: 1534308241 |
撰写
预览
正在加载...
取消
保存
Reference in new issue