Search Results for

    Show / Hide Table of Contents

    Struct PrimitiveSettings

    Settings for primitives.

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: Exiled.API.Structs
    Assembly: Exiled.API.dll
    Syntax
    public struct PrimitiveSettings

    Constructors

    | Improve this Doc View Source

    PrimitiveSettings(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.

    | Improve this Doc View Source

    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 Source

    Color

    Gets the primitive color.

    Declaration
    public readonly Color Color { get; }
    Property Value
    Type Description
    UnityEngine.Color
    | Improve this Doc View Source

    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
    | Improve this Doc View Source

    Position

    Gets the primitive position.

    Declaration
    public readonly Vector3 Position { get; }
    Property Value
    Type Description
    UnityEngine.Vector3
    | Improve this Doc View Source

    PrimitiveType

    Gets the primitive type.

    Declaration
    public readonly PrimitiveType PrimitiveType { get; }
    Property Value
    Type Description
    UnityEngine.PrimitiveType
    | Improve this Doc View Source

    Rotation

    Gets the primitive rotation.

    Declaration
    public readonly Vector3 Rotation { get; }
    Property Value
    Type Description
    UnityEngine.Vector3
    | Improve this Doc View Source

    Scale

    Gets the primitive scale.

    Declaration
    public readonly Vector3 Scale { get; }
    Property Value
    Type Description
    UnityEngine.Vector3
    | Improve this Doc View Source

    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

    Extension Methods

    ReflectionExtensions.CopyProperties(Object, Object)
    • Improve this Doc
    • View Source
    In This Article
    Back to top Generated by DocFX