Component:StaticMesh: Difference between revisions

From Resonite Wiki
Remove Category. Add infoTODO: fix sync Delegates using tool
I hate mobile sometimes. Stop clicking go.
Line 45: Line 45:


== Usage ==
== Usage ==
Attach to a slot
Attach to a slot, provide a <code>URL</code> and insert into a [[Component:SkinnedMeshRenderer]] or [[Componenr:MeshRenderer]]. Don't forget the [[Material]](s).


<!--T:4-->
<!--T:4-->

Revision as of 23:02, 10 November 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
Static Mesh component as seen in the Scene Inspector


The StaticMesh component is used to load a static mesh asset from the Uri specified in `URL`

Generally, you will not need to use this component directly, as it is created automatically when importing a new mesh, or when baking a Procedural Mesh using the Sync Method BakeMesh()

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.
URL Uri The Uri pointing to the .meshx asset to be loaded
Readable Bool Whether this component's data can be read via protoflux.

Sync Delegates

Lua error in mw.text.lua at line 25: bad argument #1 to 'match' (string expected, got nil).
Triggers
Method Name Method type and Arguments. Is the method hidden? Description

Usage

Attach to a slot, provide a URL and insert into a Component:SkinnedMeshRenderer or Componenr:MeshRenderer. Don't forget the Material(s).

Examples

See Also