Struct PrimitiveSettings
Settings for primitives.
public struct PrimitiveSettings
- Inherited Members
- Extension Methods
Constructors
PrimitiveSettings(PrimitiveType, PrimitiveFlags, Color, Vector3, Vector3, Vector3, bool)
Initializes a new instance of the PrimitiveSettings struct.
public PrimitiveSettings(PrimitiveType primitiveType, PrimitiveFlags primitiveFlags, Color color, Vector3 position, Vector3 rotation, Vector3 scale, bool spawn)
Parameters
primitiveType
PrimitiveTypeThe type of the primitive.
primitiveFlags
PrimitiveFlagsThe flags of the primitive.
color
ColorThe color of the primitive.
position
Vector3The position of the primitive.
rotation
Vector3The rotation of the primitive.
scale
Vector3The scale of the primitive.
spawn
boolWhether the primitive should be spawned.
PrimitiveSettings(PrimitiveType, Color, Vector3, Vector3, Vector3, bool)
Initializes a new instance of the PrimitiveSettings struct.
public PrimitiveSettings(PrimitiveType primitiveType, Color color, Vector3 position, Vector3 rotation, Vector3 scale, bool spawn)
Parameters
primitiveType
PrimitiveTypeThe type of the primitive.
color
ColorThe color of the primitive.
position
Vector3The position of the primitive.
rotation
Vector3The rotation of the primitive.
scale
Vector3The scale of the primitive.
spawn
boolWhether the primitive should be spawned.
PrimitiveSettings(PrimitiveType, Color, Vector3, Vector3, Vector3, bool, bool)
Initializes a new instance of the PrimitiveSettings struct.
public PrimitiveSettings(PrimitiveType primitiveType, Color color, Vector3 position, Vector3 rotation, Vector3 scale, bool spawn, bool isStatic)
Parameters
primitiveType
PrimitiveTypeThe type of the primitive.
color
ColorThe color of the primitive.
position
Vector3The position of the primitive.
rotation
Vector3The rotation of the primitive.
scale
Vector3The scale of the primitive.
spawn
boolWhether the primitive should be spawned.
isStatic
boolWhether the primitive should be static.
Properties
Color
Gets the primitive color.
public readonly Color Color { get; }
Property Value
- Color
Flags
Gets the primitive flags.
public readonly PrimitiveFlags Flags { get; }
Property Value
- PrimitiveFlags
IsStatic
Gets a value indicating whether the primitive should be spawned.
public readonly bool IsStatic { get; }
Property Value
Position
Gets the primitive position.
public readonly Vector3 Position { get; }
Property Value
- Vector3
PrimitiveType
Gets the primitive type.
public readonly PrimitiveType PrimitiveType { get; }
Property Value
- PrimitiveType
Rotation
Gets the primitive rotation.
public readonly Vector3 Rotation { get; }
Property Value
- Vector3
Scale
Gets the primitive scale.
public readonly Vector3 Scale { get; }
Property Value
- Vector3
Spawn
Gets a value indicating whether the primitive should be spawned.
public readonly bool Spawn { get; }