Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 3
0
            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);
            }
Ejemplo n.º 4
0
        public PositionRenderer() : base()
        {
            ComponentFoldout.text = "Position";

            AuthoritativeToggle.SetEnabled(false);

            coordsField = new global::Improbable.CoordinatesRenderer("Coords");
            ComponentFoldout.Add(coordsField);

            InjectComponentIcon("Transform Icon");
        }