Component:LegacyRendererSwitcher: Difference between revisions

From Resonite Wiki
No edit summary
add info
 
Line 1: Line 1:
{{Legacy}}
{{Infobox Component
{{Infobox Component
|Image=LegacyRendererSwitcherComponent.png
|Image=LegacyRendererSwitcherComponent.png
|Name=Legacy Renderer Switcher
|Name=Legacy Renderer Switcher
}}
}}
{{stub}}
The '''LegacyRendererSwitcher''' component is used to switch between different rendering types depending on meshes.


== Fields ==
== Fields ==
{{Table ComponentFields
{{Table ComponentFields
|ParticleMesh|{{RootFieldType|RelayRef`1|[[Type:AssetRef`1|AssetRef`1]]<[[Type:Mesh|Mesh]]>}}|TypeAdv0=true|
|ParticleMesh|{{RootFieldType|RelayRef`1|[[Type:AssetRef`1|AssetRef`1]]&lt;[[Type:Mesh|Mesh]]&gt;}}|TypeAdv0=true| The particle mesh object when not null will use <code>MeshRenderer</code> for the renderer.
|BillboardRenderer|'''[[Component:BillboardParticleRenderer|BillboardParticleRenderer]]'''|TypeAdv1=true|
|BillboardRenderer|'''[[Component:BillboardParticleRenderer|BillboardParticleRenderer]]'''|TypeAdv1=true| Can be switched to in order to render the particles as squares.
|MeshRenderer|'''[[Component:MeshParticleRenderer|MeshParticleRenderer]]'''|TypeAdv2=true|
|MeshRenderer|'''[[Component:MeshParticleRenderer|MeshParticleRenderer]]'''|TypeAdv2=true| Can be switched to in order to render the particles as meshes.
|RendererDrive|{{RootFieldType|RefDrive`1|[[Type:IParticleRenderer|IParticleRenderer]]}}|TypeAdv3=true|
|RendererDrive|{{RootFieldType|RefDrive`1|[[Type:IParticleRenderer|IParticleRenderer]]}}|TypeAdv3=true| Drives the target field with <code>BillboardRenderer</code> or <code>MeshRenderer</code> depending on if <code>ParticleMesh</code> is null.
}}
}}


== See Also ==
== See Also ==
Line 19: Line 17:
[[Category:Components:Uncategorized{{#translation:}}|Legacy Renderer Switcher]]
[[Category:Components:Uncategorized{{#translation:}}|Legacy Renderer Switcher]]
[[Category:Components{{#translation:}}|Legacy Renderer Switcher]]
[[Category:Components{{#translation:}}|Legacy Renderer Switcher]]
[[Category:ComponentStubs]]

Latest revision as of 16:52, 8 April 2025

Component image 
File:LegacyRendererSwitcherComponent.png
Legacy Renderer Switcher component as seen in the Scene Inspector

The LegacyRendererSwitcher component is used to switch between different rendering types depending on meshes.

Fields

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.
ParticleMesh direct RelayRef`1<AssetRef`1<Mesh>> The particle mesh object when not null will use MeshRenderer for the renderer.
BillboardRenderer BillboardParticleRenderer Can be switched to in order to render the particles as squares.
MeshRenderer MeshParticleRenderer Can be switched to in order to render the particles as meshes.
RendererDrive direct RefDrive`1<IParticleRenderer> Drives the target field with BillboardRenderer or MeshRenderer depending on if ParticleMesh is null.

See Also