Class ObjectConstructor
Class for constructing objects on demand
Inheritance
object
ObjectConstructor
Namespace: i5.Toolkit.Core.ProceduralGeometry
Assembly: cs.temp.dll.dll
Syntax
public class ObjectConstructor
Constructors
ObjectConstructor()
Creates the object constructor with empty geometry and material constructors
Declaration
public ObjectConstructor()
ObjectConstructor(GeometryConstructor, MaterialConstructor)
Creates the object constructor with the given geometry and material constructors
Declaration
public ObjectConstructor(GeometryConstructor geometryConstructor, MaterialConstructor material)
Parameters
Type | Name | Description |
---|---|---|
GeometryConstructor | geometryConstructor | Geometry constructor to initialize the object |
MaterialConstructor | material | Material constructor to initialize the object |
ObjectConstructor(GeometryConstructor)
Creates the object constructor with the given geometry constructor
Declaration
public ObjectConstructor(GeometryConstructor geometryConstructor)
Parameters
Type | Name | Description |
---|---|---|
GeometryConstructor | geometryConstructor | Geometry constructor to initialize the object |
Properties
GeometryConstructor
Constructor which defines the object's geometry
Declaration
public GeometryConstructor GeometryConstructor { get; set; }
Property Value
Type | Description |
---|---|
GeometryConstructor |
MaterialConstructor
Constructor which defines the object's material
Declaration
public MaterialConstructor MaterialConstructor { get; set; }
Property Value
Type | Description |
---|---|
MaterialConstructor |
Methods
ConstructObject(Transform)
Constructs a GameObject and populates it with the mesh of the geometry constructor and the material of the material constructor
Declaration
public GameObject ConstructObject(Transform parent = null)
Parameters
Type | Name | Description |
---|---|---|
Transform | parent | Optional; Parents the GameObject to the specified transform |
Returns
Type | Description |
---|---|
GameObject | Returns the created GameObject |