public BoxConstraintRenderer(string label, uint nest) : base(label) { centerField = new global::Improbable.CoordinatesRenderer("Center", nest + 1); Container.Add(centerField); edgeLengthField = new global::Improbable.EdgeLengthRenderer("Edge Length", nest + 1); Container.Add(edgeLengthField); }
public CylinderConstraintRenderer(string label) : base(label) { centerField = new global::Improbable.CoordinatesRenderer("Center"); Container.Add(centerField); radiusField = new TextField("Radius"); radiusField.SetEnabled(false); Container.Add(radiusField); }
public CylinderConstraintRenderer(string label, uint nest) : base(label) { centerField = new global::Improbable.CoordinatesRenderer("Center", nest + 1); Container.Add(centerField); radiusField = new TextField("Radius"); radiusField.labelElement.ShiftRightMargin(nest); radiusField.SetEnabled(false); Container.Add(radiusField); }
public PositionRenderer() : base() { ComponentFoldout.text = "Position"; AuthoritativeToggle.SetEnabled(false); coordsField = new global::Improbable.CoordinatesRenderer("Coords"); ComponentFoldout.Add(coordsField); InjectComponentIcon("Transform Icon"); }