Compare commits

..

No commits in common. "f4beaae9c55e2b492a6c8b5e80d01c719b3b0fd9" and "52acbe5f40beb3f5633d884fa2cede0d34b75fa7" have entirely different histories.

23 changed files with 95 additions and 1867 deletions

Binary file not shown.

File diff suppressed because one or more lines are too long

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 1d0a3d7be1669fe48a304ce80024a551
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,132 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: OutLineImage
m_Shader: {fileID: 4800000, guid: c2bd79b9cd62adb49973f4d6fa0b8b79, type: 3}
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _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: 2800000, guid: 916e6bb16397f3a45a993e3c38541a80, type: 3}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MaskTex:
m_Texture: {fileID: 2800000, guid: a1606d34a052ed3449da93edd229743e, type: 3}
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}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _Outline: 0.0133
- _OutlineWidth: 4.49
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _Surface: 0
- _WorkflowMode: 1
- _ZWrite: 1
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 1}
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _OutlineColor: {r: 0.95283014, g: 0.8758825, b: 0.040450297, a: 0.64705884}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []
--- !u!114 &8894918244741498972
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 5

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: b7ffb9384b38fb54d9a74ce98c08454f
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,111 +0,0 @@
Shader "Custom/OutLineShader"
{
Properties
{
_MainTex("Base (RGB)", 2D) = "white" {}
_OutlineColor("Outline Color", Color) = (.0, .0, .0, .0)
_OutlineWidth("Outline Width", Range(0, 10)) = .0
_MaskTex("Mask Texture", 2D) = "white" {}
}
SubShader
{
Tags { "RenderType" = "Overlay" }
Pass
{
Name "OUTLINE"
ZWrite Off
ZTest Always
Blend SrcAlpha OneMinusSrcAlpha
ColorMask RGB
Stencil
{
Ref 1
Comp Always
Pass Replace
}
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
struct v2f
{
float4 pos : POSITION;
};
float _OutlineWidth;
float4 _OutlineColor;
sampler2D _MaskTex;
v2f vert(appdata v)
{
v2f o;
float2 offset = float2(_OutlineWidth / _ScreenParams.x, _OutlineWidth / _ScreenParams.y);
o.pos = UnityObjectToClipPos(v.vertex) + float4(offset, 0, 0) * v.vertex.w;
return o;
}
half4 frag(v2f i) : COLOR
{
// Apply mask texture to control where the outline is visible
float mask = tex2D(_MaskTex, i.pos.xy / i.pos.w).r;
return _OutlineColor * mask;
}
ENDCG
}
Pass
{
Name "BASE"
ZWrite Off
ZTest Always
Blend SrcAlpha OneMinusSrcAlpha
ColorMask RGB
Stencil
{
Ref 1
Comp Equal
Pass Keep
}
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata
{
float4 vertex : POSITION;
float2 uv : TEXCOORD0;
};
struct v2f
{
float4 pos : POSITION;
float2 uv : TEXCOORD0;
};
sampler2D _MainTex;
v2f vert(appdata v)
{
v2f o;
o.pos = UnityObjectToClipPos(v.vertex);
o.uv = v.uv;
return o;
}
half4 frag(v2f i) : COLOR
{
return tex2D(_MainTex, i.uv);
}
ENDCG
}
}
}

View File

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: c2bd79b9cd62adb49973f4d6fa0b8b79
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
preprocessorOverride: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,69 +0,0 @@
Shader "Custom/UIOutlineShader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
_OutlineColor ("Outline Color", Color) = (1,1,1,1)
_OutlineWidth ("Outline Width", Range(0.0, 10.0)) = 1.0
}
SubShader
{
Tags {"Queue"="Overlay" "IgnoreProjector"="True" "RenderType"="Transparent"}
Lighting Off ZWrite Off ZTest Always Blend SrcAlpha OneMinusSrcAlpha Cull Off
Pass
{
CGPROGRAM
#pragma vertex vert
#pragma fragment frag
#include "UnityCG.cginc"
struct appdata_t
{
float4 vertex : POSITION;
float2 texcoord : TEXCOORD0;
};
struct v2f
{
float4 pos : POSITION;
float2 texcoord : TEXCOORD0;
};
sampler2D _MainTex;
float4 _MainTex_ST;
float4 _OutlineColor;
float _OutlineWidth;
v2f vert(appdata_t v)
{
v2f o;
o.pos = UnityObjectToClipPos(v.vertex);
o.texcoord = v.texcoord;
return o;
}
float4 frag(v2f i) : COLOR
{
float4 mainColor = tex2D(_MainTex, i.texcoord);
// Get texture size
float2 texelSize = float2(_OutlineWidth / _ScreenParams.x, _OutlineWidth / _ScreenParams.y);
// Sampling neighboring pixels
float alpha =
tex2D(_MainTex, i.texcoord + texelSize.xy).a +
tex2D(_MainTex, i.texcoord - texelSize.xy).a +
tex2D(_MainTex, i.texcoord + float2(-texelSize.x, texelSize.y)).a +
tex2D(_MainTex, i.texcoord + float2(texelSize.x, -texelSize.y)).a;
alpha = step(0.01, alpha) * (1 - mainColor.a);
float4 outlineColor = _OutlineColor * alpha;
return outlineColor + mainColor;
}
ENDCG
}
}
FallBack "Unlit/Transparent"
}

View File

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: ca85cb0f4ceccad4fb10e94f47821ec6
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
preprocessorOverride: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.6 MiB

After

Width:  |  Height:  |  Size: 4.6 MiB

View File

@ -20,7 +20,7 @@ Material:
m_CorrespondingSourceObject: {fileID: 0} m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0} m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
m_Name: "\u7EDD\u7F18\u9774" m_Name: "\u9774\u5B502"
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3} m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_ValidKeywords: [] m_ValidKeywords: []
m_InvalidKeywords: [] m_InvalidKeywords: []

View File

@ -1,129 +0,0 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-1826117425740394722
MonoBehaviour:
m_ObjectHideFlags: 11
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: d0353a89b1f911e48b9e16bdc9f2e058, type: 3}
m_Name:
m_EditorClassIdentifier:
version: 5
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: "\u7EDD\u7F18\u9774"
m_Shader: {fileID: 4800000, guid: 933532a4fcc9baf4fa0491de14d08ed7, type: 3}
m_ValidKeywords:
- _SURFACE_TYPE_TRANSPARENT
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 3000
stringTagMap:
RenderType: Transparent
disabledShaderPasses:
- DepthOnly
- SHADOWCASTER
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BaseMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _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}
- _SpecGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_Lightmaps:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_LightmapsInd:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- unity_ShadowMasks:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _AlphaClip: 0
- _Blend: 0
- _BumpScale: 1
- _ClearCoatMask: 0
- _ClearCoatSmoothness: 0
- _Cull: 2
- _Cutoff: 0.5
- _DetailAlbedoMapScale: 1
- _DetailNormalMapScale: 1
- _DstBlend: 10
- _EnvironmentReflections: 1
- _GlossMapScale: 0
- _Glossiness: 0
- _GlossyReflections: 0
- _Metallic: 0
- _OcclusionStrength: 1
- _Parallax: 0.005
- _QueueOffset: 0
- _ReceiveShadows: 1
- _Smoothness: 0.5
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 5
- _Surface: 1
- _WorkflowMode: 1
- _ZWrite: 0
m_Colors:
- _BaseColor: {r: 1, g: 1, b: 1, a: 0}
- _Color: {r: 1, g: 1, b: 1, a: 0}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecColor: {r: 0.19999996, g: 0.19999996, b: 0.19999996, a: 1}
m_BuildTextureStacks: []

View File

@ -1,8 +0,0 @@
fileFormatVersion: 2
guid: 0bd66d44161ef1a48aacb60b56e482a3
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -740,10 +740,6 @@ PrefabInstance:
propertyPath: m_Layer propertyPath: m_Layer
value: 6 value: 6
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 3824992726501166374, guid: 69e264891bba88c4b87f73112f0b3c84, type: 3}
propertyPath: m_Layer
value: 6
objectReference: {fileID: 0}
- target: {fileID: 3824992726501166374, guid: 69e264891bba88c4b87f73112f0b3c84, type: 3} - target: {fileID: 3824992726501166374, guid: 69e264891bba88c4b87f73112f0b3c84, type: 3}
propertyPath: m_IsActive propertyPath: m_IsActive
value: 1 value: 1
@ -958,11 +954,6 @@ Transform:
m_CorrespondingSourceObject: {fileID: 9023546900043378599, guid: 69e264891bba88c4b87f73112f0b3c84, type: 3} m_CorrespondingSourceObject: {fileID: 9023546900043378599, guid: 69e264891bba88c4b87f73112f0b3c84, type: 3}
m_PrefabInstance: {fileID: 810725974} m_PrefabInstance: {fileID: 810725974}
m_PrefabAsset: {fileID: 0} m_PrefabAsset: {fileID: 0}
--- !u!4 &810725979 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 7414053543467013715, guid: 69e264891bba88c4b87f73112f0b3c84, type: 3}
m_PrefabInstance: {fileID: 810725974}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &860489968 --- !u!1001 &860489968
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -2138,8 +2129,7 @@ MonoBehaviour:
toolParent: {fileID: 983777793} toolParent: {fileID: 983777793}
headSlot: {fileID: 810725978} headSlot: {fileID: 810725978}
bodySlot: {fileID: 810725977} bodySlot: {fileID: 810725977}
handSlot: {fileID: 810725976} HandSlot: {fileID: 810725976}
shoesSlot: {fileID: 810725979}
--- !u!1 &2090806849 --- !u!1 &2090806849
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -10,8 +10,7 @@ public class TooRoomMannger : SingletonMono<TooRoomMannger>
public Transform toolParent; public Transform toolParent;
public Transform headSlot; public Transform headSlot;
public Transform bodySlot; public Transform bodySlot;
public Transform handSlot; public Transform HandSlot;
public Transform shoesSlot;
private List<Material> _cancel; //灌누덖꼼醴헷 private List<Material> _cancel; //灌누덖꼼醴헷
private List<Material> _wear; //누덖꼼醴헷 private List<Material> _wear; //누덖꼼醴헷
// Start is called before the first frame update // Start is called before the first frame update
@ -52,10 +51,10 @@ public class TooRoomMannger : SingletonMono<TooRoomMannger>
bodySlot.GetComponent<SkinnedMeshRenderer>().material = ma; bodySlot.GetComponent<SkinnedMeshRenderer>().material = ma;
break; break;
case "없鍍癎敬": case "없鍍癎敬":
handSlot.GetComponent<SkinnedMeshRenderer>().material = ma; HandSlot.GetComponent<SkinnedMeshRenderer>().material = ma;
break; break;
case "없鍍棄": case "없鍍棄":
shoesSlot.GetComponent<MeshRenderer>().material = ma; Debug.Log("Ñ¥×Ó");
break; break;
} }
} }

View File

@ -25,6 +25,7 @@ public class MobileController : PermanentTriggerBase
switch (downIndex) switch (downIndex)
{ {
case 0: case 0:
_highlight.SetHighlighted(false);
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerID, false) == 0) if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerID, false) == 0)
{ {
GameManager.UIMgr.ShowPanel<UI_ReceiveTaskPanel>(E_UI_Layer.Mid, (panel) => GameManager.UIMgr.ShowPanel<UI_ReceiveTaskPanel>(E_UI_Layer.Mid, (panel) =>
@ -33,27 +34,26 @@ public class MobileController : PermanentTriggerBase
}); });
downIndex++; downIndex++;
} }
_highlight.SetHighlighted(false);
break; break;
case 1: case 1:
GameManager.UIMgr.ShowPanel<UI_PlayerSessionPanel>(E_UI_Layer.Mid, (panel) => if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerID, false) == 0)
{ {
panel.Init(triggerID, "我是xxx供电所人员到xxx地方开展经互感器接入式低压电能计量装置安装作业。", PlayerTalk); GameManager.UIMgr.ShowPanel<UI_PlayerSessionPanel>(E_UI_Layer.Mid, (panel) =>
}); {
_highlight.SetHighlighted(false); panel.Init(triggerID, "我是xxx供电所人员到xxx地方开展经互感器接入式低压电能计量装置安装作业。", PlayerTalk);
downIndex = 0; });
_highlight.SetHighlighted(false);
downIndex++;
}
break; break;
} }
} }
private void PlayerTalk(int triggerID) private void PlayerTalk(int triggerID)
{ {
if (GameManager.ProcessMgr.IsRightSubProcessStepsTriggerID(triggerID, true) == 0) GameManager.UIMgr.ShowPanel<UI_CustomSessionPanel>(E_UI_Layer.Mid, (panel) =>
{ {
GameManager.UIMgr.ShowPanel<UI_CustomSessionPanel>(E_UI_Layer.Mid, (panel) => panel.Init(triggerID, "好的", null);
{ });
panel.Init(triggerID, "好的", null);
});
}
} }
} }

View File

@ -13,12 +13,11 @@ public class UI_TopTipPanel : BasePanel
private float disappear = 5f; private float disappear = 5f;
public void Init(string title, string content) public void Init(string title, string content)
{ {
disappear = 5f;
GetControl<TextMeshProUGUI>("Text_Title").text = title; GetControl<TextMeshProUGUI>("Text_Title").text = title;
GetControl<TextMeshProUGUI>("Text_Content").text = content; GetControl<TextMeshProUGUI>("Text_Content").text = content;
GetControl<TextMeshProUGUI>("Text_Content").GetComponent<ContentSizeFitter>().SetLayoutVertical(); GetControl<TextMeshProUGUI>("Text_Content").GetComponent<ContentSizeFitter>().SetLayoutVertical();
var height = GetControl<TextMeshProUGUI>("Text_Content").rectTransform.sizeDelta.y + 60 + 40; var height = GetControl<TextMeshProUGUI>("Text_Content").rectTransform.sizeDelta.y + 60 + 40;
GetControl<Image>("Image_BackGround").rectTransform.sizeDelta = new Vector2(640, height); GetControl<Image>("Image_BackGround").rectTransform.sizeDelta = new Vector2(640 , height);
Hide(); Hide();
} }
/// <summary> /// <summary>
@ -26,7 +25,6 @@ public class UI_TopTipPanel : BasePanel
/// </summary> /// </summary>
private void Hide() private void Hide()
{ {
StopCoroutine(HideAsync());
StartCoroutine(HideAsync()); StartCoroutine(HideAsync());
} }
private IEnumerator HideAsync() private IEnumerator HideAsync()

View File

@ -1,25 +0,0 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Test : MonoBehaviour
{
public Color borderColor = Color.yellow;
public float borderWidth = 5f;
private void OnDrawGizmos()
{
RectTransform rt = GetComponent<RectTransform>();
if (rt != null)
{
Gizmos.color = borderColor;
Gizmos.DrawWireCube(rt.position, rt.sizeDelta + new Vector2(borderWidth * 2, borderWidth * 2));
}
}
// Update is called once per frame
void Update()
{
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 35027ab99032d6748987a9bda5312d20
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: