public Float4x4Visualizer(IWatch w, IAccessor <float4x4> a) { Watch = w; Accessor = a; var prefab = Resources.Load("DebugWatchFloat4x4Gizmo") as GameObject; VisGo.GameObject = GameObject.Instantiate(prefab, Vector3.zero, Quaternion.identity); VisGo.GameObject.name = $"Gizmo {w.GetName()} {w.GetContextName()}"; gizmo = VisGo.GameObject.GetComponent <InternalDetails.DebugWatchFloat4x4Gizmo>(); gizmo.Accessor = a; gizmo.Refresh(); }
public Float4x4Visualizer(IWatch w, IAccessor <float4x4> a) { Watch = w; Accessor = a; var prefab = Resources.Load("DebugWatchVisualizer") as GameObject; VisGo.GameObject = GameObject.Instantiate(prefab, Vector3.zero, Quaternion.identity); VisGo.GameObject.name = $"Plot {w.GetName()} {w.GetContextName()}"; VisGo.Hide(); visualizer = VisGo.GameObject.GetComponent <InternalDetails.DebugWatchFloat4x4>(); visualizer.Accessor = a; visualizer.Scale = Scale; AddCurrentValue(); visualizer.Refresh(); }