Automated: create new component page |
add info |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
|Name=Scale Gizmo | |Name=Scale Gizmo | ||
}} | }} | ||
The '''ScaleGizmo''' component is used to allow scaling of a slot it is targeting. | |||
== | See [[Dev tool]]. | ||
== Fields == | |||
{{Table ComponentFields | {{Table ComponentFields | ||
|TargetSlot|{{RootFieldType|TransformRelayRef}}|TypeAdv0=true| | |TargetSlot|{{RootFieldType|TransformRelayRef}}|TypeAdv0=true| The slot this is scaling/targeting. | ||
|AutoPositionAtTargetSlot|Bool| | |AutoPositionAtTargetSlot|Bool| Whether to auto position this gizmo at <code>TargetSlot</code> | ||
|_interactingComponent| | |_interactingComponent|Component| The component that is interacting with this component. | ||
|_material|'''[[OverlayFresnelMaterial|OverlayFresnelMaterial]]'''|TypeAdv3=true| | |_material|'''[[OverlayFresnelMaterial|OverlayFresnelMaterial]]'''|TypeAdv3=true| The material for the gizmo visual. | ||
|_toolPoint|Slot| | |_toolPoint|Slot| The slot representing the interacting dev tool's tip. | ||
|_activePoint|Slot| | |_activePoint|Slot| The active point of the gizmo | ||
|_lineRoot|Slot| | |_lineRoot|Slot| the root of the line visual going back to <code>_toolPoint</code>. | ||
|_lineSegment|'''[[Component:SegmentMesh|SegmentMesh]]'''|TypeAdv7=true| | |_lineSegment|'''[[Component:SegmentMesh|SegmentMesh]]'''|TypeAdv7=true| The line segment for the line from gizmo center to <code>_toolPoint</code>. | ||
|_snapHighlight|Slot| | |_snapHighlight|Slot| The slot for a snap point highlight like a selected cube corner. | ||
|TargetScale|'''[[Type:IField`1|IField`1]]<[[Type:Float3|Float3]]>'''|TypeAdv9=true| | |TargetScale|'''[[Type:IField`1|IField`1]]<[[Type:Float3|Float3]]>'''|TypeAdv9=true| The scale field of what this is scaling. | ||
|HandleLength|Float| | |HandleLength|Float| The length of the scale gizmo handles. | ||
|_xSlot|Slot| | |_xSlot|Slot| The scale gizmo for the x axis. | ||
|_ySlot|Slot| | |_ySlot|Slot| The scale gizmo for the y axis. | ||
|_zSlot|Slot| | |_zSlot|Slot| The scale gizmo for the z axis. | ||
}} | }} | ||
== | == Usage == | ||
See [[Dev tool]]. | |||
== Examples == | == Examples == | ||
See [[Dev tool]]. | |||
== See Also == | == See Also == | ||
* [[Dev tool]] | |||
[[Category:Components:Uncategorized{{#translation:}}|Scale Gizmo]] | [[Category:Components:Uncategorized{{#translation:}}|Scale Gizmo]] | ||
[[Category:Components{{#translation:}}|Scale Gizmo]] | [[Category:Components{{#translation:}}|Scale Gizmo]] | ||
Latest revision as of 04:40, 1 August 2025
Component image 
Scale Gizmo component as seen in the Scene Inspector

The ScaleGizmo component is used to allow scaling of a slot it is targeting.
See Dev tool.
Fields
Name | Type | Description |
---|---|---|
persistent
|
Bool | Determines whether or not this item will be saved to the server. |
UpdateOrder
|
Int | Controls the order in which this component is updated. |
Enabled
|
Bool | Controls whether or not this component is enabled. Some components stop their functionality when this field is disabled, but some don't. |
TargetSlot
|
direct TransformRelayRef | The slot this is scaling/targeting. |
AutoPositionAtTargetSlot
|
Bool | Whether to auto position this gizmo at TargetSlot
|
_interactingComponent
|
Component | The component that is interacting with this component. |
_material
|
OverlayFresnelMaterial | The material for the gizmo visual. |
_toolPoint
|
Slot | The slot representing the interacting dev tool's tip. |
_activePoint
|
Slot | The active point of the gizmo |
_lineRoot
|
Slot | the root of the line visual going back to _toolPoint .
|
_lineSegment
|
SegmentMesh | The line segment for the line from gizmo center to _toolPoint .
|
_snapHighlight
|
Slot | The slot for a snap point highlight like a selected cube corner. |
TargetScale
|
IField`1<Float3> | The scale field of what this is scaling. |
HandleLength
|
Float | The length of the scale gizmo handles. |
_xSlot
|
Slot | The scale gizmo for the x axis. |
_ySlot
|
Slot | The scale gizmo for the y axis. |
_zSlot
|
Slot | The scale gizmo for the z axis. |
Usage
See Dev tool.
Examples
See Dev tool.