add info, no longer stub |
Automated: update component fields |
||
Line 11: | Line 11: | ||
== Fields == | == Fields == | ||
{{Table ComponentFields | {{Table ComponentFields | ||
|Target|AssetRef`1| | |Target|{{RootFieldType|DriveRef`1|[[Type:AssetRef`1|AssetRef`1]]<A>}}|TypeAdv0=true| The field to drive. | ||
|Index|Int| Which element in <code>Assets</code> to drive to <code>Target</code> | |Index|Int| Which element in <code>Assets</code> to drive to <code>Target</code> | ||
|Assets| | |Assets|{{RootFieldType|SyncAssetList`1|A}}|TypeAdv2=true| The list of assets to multiplex between. | ||
}} | }} | ||
Revision as of 10:28, 1 March 2024
Component image
The AssetMultiplexer component is used to drive a field to one asset from a list, based on its position in the list.
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. |
Target
|
direct DriveRef`1<AssetRef`1<A>> | The field to drive. |
Index
|
Int | Which element in Assets to drive to Target
|
Assets
|
list of A | The list of assets to multiplex between. |
Usage
Add the list of assets you want to use through the SyncAssetList<IAsset`1> area, then add in your assets into the items. Then you can specify the field through the Target you wanna switch between different assets for. Changing the Index will change which asset the Target has in it.
Examples
Using an asset multiplexer to allow your avatar to switch shirts via changing the texture, a pattern changer for a music visualizer.