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
primitiveTypePrimitiveTypeThe type of the primitive.
primitiveFlagsPrimitiveFlagsThe flags of the primitive.
colorColorThe color of the primitive.
positionVector3The position of the primitive.
rotationVector3The rotation of the primitive.
scaleVector3The scale of the primitive.
spawnboolWhether 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
primitiveTypePrimitiveTypeThe type of the primitive.
colorColorThe color of the primitive.
positionVector3The position of the primitive.
rotationVector3The rotation of the primitive.
scaleVector3The scale of the primitive.
spawnboolWhether 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
primitiveTypePrimitiveTypeThe type of the primitive.
colorColorThe color of the primitive.
positionVector3The position of the primitive.
rotationVector3The rotation of the primitive.
scaleVector3The scale of the primitive.
spawnboolWhether the primitive should be spawned.
isStaticboolWhether 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; }