Struct PrimitiveSettings
Settings for primitives.
Inherited Members
Namespace: Exiled.API.Structs
Assembly: Exiled.API.dll
Syntax
public struct PrimitiveSettings
Constructors
| Improve this Doc View SourcePrimitiveSettings(PrimitiveType, Color, Vector3, Vector3, Vector3, Boolean)
Initializes a new instance of the PrimitiveSettings struct.
Declaration
public PrimitiveSettings(PrimitiveType primitiveType, Color color, Vector3 position, Vector3 rotation, Vector3 scale, bool spawn)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.PrimitiveType | primitiveType | The type of the primitive. |
UnityEngine.Color | color | The color of the primitive. |
UnityEngine.Vector3 | position | The position of the primitive. |
UnityEngine.Vector3 | rotation | The rotation of the primitive. |
UnityEngine.Vector3 | scale | The scale of the primitive. |
System.Boolean | spawn | Whether or not the primitive should be spawned. |
PrimitiveSettings(PrimitiveType, Color, Vector3, Vector3, Vector3, Boolean, Boolean)
Initializes a new instance of the PrimitiveSettings struct.
Declaration
public PrimitiveSettings(PrimitiveType primitiveType, Color color, Vector3 position, Vector3 rotation, Vector3 scale, bool spawn, bool isStatic)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.PrimitiveType | primitiveType | The type of the primitive. |
UnityEngine.Color | color | The color of the primitive. |
UnityEngine.Vector3 | position | The position of the primitive. |
UnityEngine.Vector3 | rotation | The rotation of the primitive. |
UnityEngine.Vector3 | scale | The scale of the primitive. |
System.Boolean | spawn | Whether or not the primitive should be spawned. |
System.Boolean | isStatic | Whether or not the primitive should be static. |
Properties
| Improve this Doc View SourceColor
Gets the primitive color.
Declaration
public readonly Color Color { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Color |
IsStatic
Gets a value indicating whether or not the primitive should be spawned.
Declaration
public readonly bool IsStatic { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
Position
Gets the primitive position.
Declaration
public readonly Vector3 Position { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
PrimitiveType
Gets the primitive type.
Declaration
public readonly PrimitiveType PrimitiveType { get; }
Property Value
Type | Description |
---|---|
UnityEngine.PrimitiveType |
Rotation
Gets the primitive rotation.
Declaration
public readonly Vector3 Rotation { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
Scale
Gets the primitive scale.
Declaration
public readonly Vector3 Scale { get; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
Spawn
Gets a value indicating whether or not the primitive should be spawned.
Declaration
public readonly bool Spawn { get; }
Property Value
Type | Description |
---|---|
System.Boolean |