imported>Psychpsyo Added field description |
989onan bot (talk | contribs) Automated: update Fields |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 2: | Line 2: | ||
<translate> | <translate> | ||
<!--T:1--> | <!--T:1--> | ||
{{Infobox Component | {{Infobox Component | ||
|Image=ScaleAlignerComponent.png | |Image=ScaleAlignerComponent.png | ||
|Name=Scale Aligner | |Name=Scale Aligner | ||
}} | }} | ||
The '''ScaleAligner''' component scales a list of slots based on bounding box, each one being bigger/smaller than the last. | |||
<!--T:2--> | <!--T:2--> | ||
Line 12: | Line 12: | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|AutoAddChildren|Bool| Controls whether slots below this component's slot in the hierarchy are automatically added to <code>_targets</code> | |AutoAddChildren|Bool| Controls whether slots below this component's slot in the hierarchy are automatically added to <code>_targets</code> | ||
|BaseSize|Float3| | |AutoAddIgnoreTags|{{RootFieldType|SyncFieldList`1|[[Type:String|String]]}}|TypeAdv1=true| | ||
|Increment|Float3| | |BaseSize|Float3| The size the first item should be in local space based on Bounding box. | ||
|Multiplier|Float3| | |Increment|Float3| How much to make the next item in the list bigger/smaller than the last by adding to its Bounding box size. | ||
|NonUniform|Bool| | |Multiplier|Float3| How much to make the next item in the list bigger/smaller than the last by multiplying its Bounding box size after adding <code>Increment</code> | ||
|_targets|SyncList`1| | |NonUniform|Bool| Whether scaling can be non uniform for Bounding box Scale calculations. | ||
|_targets|{{RootFieldType|SyncList`1|[[#Target|ScaleAligner.Target]]}}|TypeAdv6=true| A list of slots and their scales to influence. | |||
}} | |||
== Target == | |||
{{Table TypeFields | |||
|TargetSlot|Slot| The slot this Target entry is targeting. | |||
|ScaleDrive|{{RootFieldType|FieldDrive`1|[[Type:Float3|Float3]]}}|TypeAdv1=true| The scale field of <code>TargetSlot</code>. | |||
}} | }} | ||
<!--T:3--> | <!--T:3--> | ||
== Usage == | == Usage == | ||
{{stub}} | |||
<!--T:4--> | <!--T:4--> | ||
== Examples == | == Examples == | ||
{{stub}} | |||
<!--T:5--> | <!--T:5--> | ||
== | == See Also == | ||
</translate> | </translate> | ||
[[Category:Components{{#translation:}}|Scale Aligner]] | [[Category:Components{{#translation:}}|Scale Aligner]] | ||
[[Category:Components With Nested Types{{#translation:}}|Scale Aligner]] | |||
[[Category:Components:Transform:Drivers{{#translation:}}|Scale Aligner]] | [[Category:Components:Transform:Drivers{{#translation:}}|Scale Aligner]] |
Latest revision as of 06:04, 17 March 2025
Component image 
Scale Aligner component as seen in the Scene Inspector

The ScaleAligner component scales a list of slots based on bounding box, each one being bigger/smaller than the last.
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. |
AutoAddChildren
|
Bool | Controls whether slots below this component's slot in the hierarchy are automatically added to _targets
|
AutoAddIgnoreTags
|
direct SyncFieldList`1<String> | |
BaseSize
|
Float3 | The size the first item should be in local space based on Bounding box. |
Increment
|
Float3 | How much to make the next item in the list bigger/smaller than the last by adding to its Bounding box size. |
Multiplier
|
Float3 | How much to make the next item in the list bigger/smaller than the last by multiplying its Bounding box size after adding Increment
|
NonUniform
|
Bool | Whether scaling can be non uniform for Bounding box Scale calculations. |
_targets
|
list of ScaleAligner.Target | A list of slots and their scales to influence. |
Target
Name | Type | Description |
---|---|---|
TargetSlot
|
Slot | The slot this Target entry is targeting. |
ScaleDrive
|
field drive of Float3 | The scale field of TargetSlot .
|
Usage
This article or section is a Stub. You can help the Resonite Wiki by expanding it.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.