API ReferenceEditor.MeshEditor
PrimitiveBuilderclass
Build primitives out of polygons.
object→PrimitiveBuilder
Constructors1
Showing 1 constructors
protected PrimitiveBuilder()
No results match this filter.
Methods3
Showing 3 methods
public virtual void Build(Editor.MeshEditor.PrimitiveBuilder.PolygonMesh mesh)
Create the primitive in the mesh.
| Parameter | Type | Description |
|---|---|---|
| mesh | PolygonMesh | — |
Returns:
void—public virtual Editor.Widget CreatePropertyEditor(Sandbox.SerializedObject properties)
Create a custom editor for this primitive, or return null to use the standard property sheet.
| Parameter | Type | Description |
|---|---|---|
| properties | SerializedObject | — |
No results match this filter.
Properties2
Showing 2 properties
public virtual bool Editor.MeshEditor.PrimitiveBuilder.Is2D { get; set; }
If this primitive is 2D the bounds box will be limited to have no depth.
Returns:
bool—public Sandbox.Material Editor.MeshEditor.PrimitiveBuilder.Material { get; set; }
The material to use for this whole primitive. Loaded on demand so builders can be created without the render system.
No results match this filter.