Component image
The MultiLineMesh component generates geometry for use with a Component:MeshRenderer. For now, this component is unusable without Mods due to having a list type object.
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. |
HighPriorityIntegration
|
Bool | If true, integrating this asset (e.g. processing procedural assets) gets higher priority than assets with this flag off. An example is user laser procedural meshes. |
OverrideBoundingBox
|
Bool | Force the bounding box calculated from this component to use OverridenBoundingBox instead of calculating when requested.
|
OverridenBoundingBox
|
BoundingBox | the bounding box this component should say it has when OverrideBoundingBox is enabled. Useful for bounding box calculations with Flux, or changing the selection box for this component when rendered.
|
Profile
|
ColorProfile | The profile that the vertex colors for this mesh should be displayed in. |
Lines
|
list of Line | A set of lines that make up the source of the data for the geometry of this mesh. |
Sync Delegates
Method Name | Method type and Arguments. | Description |
---|---|---|
BakeMesh()
|
Action | Bake meshes is a sync method that creates a static mesh component with this component, replaces all references to this component with the static mesh component, then deletes this component. |
Line
Name | Type | Description |
---|---|---|
Scale
|
Float | The radius of the line. This is a multiplier. |
Color
|
Color | The vertex color of the line |
Points
|
Int | How many points are in this line. |
Topology
|
Topology | the kind of Topology this line has. |
Shading
|
Shading | How to handle the Shading of this line. |
Ends
|
Ends | How to handle the caps at the start and end of this line |
DualSided
|
Bool | Whether the line can be seen from the inside. |
AbsolutePointOffets
|
Bool | Whether each position is relative or not from the last point |
UVScale
|
Float2 | the scale of the material detail on the surface of this line. |
ScaleUVByCircumference
|
Bool | Whether to keep the material detail per square millimeter consistent regardless of the value used for Scale
|
PreciseUV
|
Bool | Whether to make a more accurate UV for the line. |
Positions
|
array of Float3 | A list of positions to use for making the line |
Scales
|
array of Float | The scale of each line segment. Each one is multipled by Scales for the final geometry.
|
Orientations
|
array of FloatQ | The rotation of each segment of the line |
Colors
|
array of Color | The vertex colors of each segment of the line |
Profile
|
ColorProfile | The color profile used for the vertex colors of this line. |
PointOffsets
|
array of Float3 | The offset of each point of the line. Used in tandem with Orientations to handle line shape.
|
Usage
Attach to a slot and insert into a Component:MeshRenderer to view the generated geometry. Don't forget to use a Material.
Examples
This article or section is a Stub. You can help the Resonite Wiki by expanding it.