扩展取消高亮功能 支持单个设备
This commit is contained in:
parent
dc9802943b
commit
1812e5c2ec
11
Assets/Scripts/Editor/SetReadWrite.cs.meta
Normal file
11
Assets/Scripts/Editor/SetReadWrite.cs.meta
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
fileFormatVersion: 2
|
||||||
|
guid: a1465669937f2bd41bb9445a4ad56e2b
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
@ -46,9 +46,12 @@ public class DeviceItem : MonoBehaviour
|
|||||||
{
|
{
|
||||||
bool isActive = true;
|
bool isActive = true;
|
||||||
bool.TryParse(obj[0], out isActive);
|
bool.TryParse(obj[0], out isActive);
|
||||||
|
if (obj.Length == 1 || (obj.Length > 1 && obj[1] == device.Name))
|
||||||
|
{
|
||||||
gameObject.GetComponent<HighlightTrigger>().enabled = isActive;
|
gameObject.GetComponent<HighlightTrigger>().enabled = isActive;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void OnMouseUpAsButton()
|
private void OnMouseUpAsButton()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -128,7 +128,7 @@
|
|||||||
|
|
||||||
<!--通用事件通知
|
<!--通用事件通知
|
||||||
|
|
||||||
HighLightTrigger:value=false 关闭device悬浮高亮 value=true 开启
|
HighLightTrigger:value=false 关闭device悬浮高亮 value=true 开启 false value=false,deviceName 后面的参数是可以写设备名字 不写就是全部设备
|
||||||
|
|
||||||
-->
|
-->
|
||||||
<Action type="StrEvent" name="HighLightTrigger" value="false"></Action>
|
<Action type="StrEvent" name="HighLightTrigger" value="false"></Action>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user