Component:RectMesh: Difference between revisions

From Resonite Wiki
Updated note.
Removed danger note.
Line 5: Line 5:


The '''RectMesh''' component takes in a value (either a dynamic value from an [[Type:IAudioSource|IAudioSource]], or a min and max [[Type:float|float]] value) and parameters for the generated rect mesh, then renders it onto the [[UIX]].
The '''RectMesh''' component takes in a value (either a dynamic value from an [[Type:IAudioSource|IAudioSource]], or a min and max [[Type:float|float]] value) and parameters for the generated rect mesh, then renders it onto the [[UIX]].
{{Note|This component can cause world crashes. [https://github.com/Yellow-Dog-Man/Resonite-Issues/issues/2645 Issue #2645].|danger}}


{{Table ComponentFields
{{Table ComponentFields

Revision as of 22:43, 22 July 2024

Component image 
Rect Mesh`1 component as seen in the Scene Inspector


The RectMesh component takes in a value (either a dynamic value from an IAudioSource, or a min and max float value) and parameters for the generated rect mesh, then renders it onto the UIX.

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.
Mesh direct M The mesh parameters used to render this rect mesh.
Materials list of Material The material to render for this rect mesh.

Usage

This can be used to make fancy audio visuals from a user's Audio Stream Controller.

Examples

See Also