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
- primitiveTypePrimitiveType
- The type of the primitive. 
- primitiveFlagsPrimitiveFlags
- The flags of the primitive. 
- colorColor
- The color of the primitive. 
- positionVector3
- The position of the primitive. 
- rotationVector3
- The rotation of the primitive. 
- scaleVector3
- The scale of the primitive. 
- spawnbool
- Whether 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
- primitiveTypePrimitiveType
- The type of the primitive. 
- colorColor
- The color of the primitive. 
- positionVector3
- The position of the primitive. 
- rotationVector3
- The rotation of the primitive. 
- scaleVector3
- The scale of the primitive. 
- spawnbool
- Whether 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
- primitiveTypePrimitiveType
- The type of the primitive. 
- colorColor
- The color of the primitive. 
- positionVector3
- The position of the primitive. 
- rotationVector3
- The rotation of the primitive. 
- scaleVector3
- The scale of the primitive. 
- spawnbool
- Whether the primitive should be spawned. 
- isStaticbool
- Whether 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; }