Files
unity/Tools/Unity/Commands/InspectReticle.json
T

2 lines
479 B
JSON
Raw Normal View History

[{"tool":"execute_code","arguments":{"action":"execute","code":"var d=Ironspore.GameSession.Active.GetComponent<UnityEngine.UIElements.UIDocument>(); var e=UnityEngine.UIElements.UQueryExtensions.Q<UnityEngine.UIElements.VisualElement>(d.rootVisualElement,null,\"crosshair\"); return new { bounds=e.worldBound.ToString(), parent=e.parent.worldBound.ToString(), visible=e.visible, childBounds=e[0].worldBound.ToString(), color=e[0].resolvedStyle.backgroundColor.ToString() };"}}]