Search Results for

    Show / Hide Table of Contents

    Class Light

    A wrapper class for AdminToys.LightSourceToy.

    Inheritance
    System.Object
    AdminToy
    Light
    Implements
    IWorldSpace
    IPosition
    IRotation
    IWrapper<AdminToys.LightSourceToy>
    Inherited Members
    AdminToy.AdminToyBase
    AdminToy.ToyType
    AdminToy.Player
    AdminToy.Footprint
    AdminToy.Position
    AdminToy.Rotation
    AdminToy.Scale
    AdminToy.MovementSmoothing
    AdminToy.IsStatic
    AdminToy.Get(AdminToyBase)
    AdminToy.Spawn()
    AdminToy.UnSpawn()
    AdminToy.Destroy()
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: Exiled.API.Features.Toys
    Assembly: Exiled.API.dll
    Syntax
    public class Light : AdminToy, IWorldSpace, IPosition, IRotation, IWrapper<LightSourceToy>

    Properties

    | Improve this Doc View Source

    Base

    Gets the base AdminToys.LightSourceToy.

    Declaration
    public LightSourceToy Base { get; }
    Property Value
    Type Description
    AdminToys.LightSourceToy
    | Improve this Doc View Source

    Color

    Gets or sets the color of the primitive.

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

    Intensity

    Gets or sets the intensity of the light.

    Declaration
    public float Intensity { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    Range

    Gets or sets the range of the light.

    Declaration
    public float Range { get; set; }
    Property Value
    Type Description
    System.Single
    | Improve this Doc View Source

    ShadowEmission

    Gets or sets a value indicating whether the light should cause shadows from other objects.

    Declaration
    public bool ShadowEmission { get; set; }
    Property Value
    Type Description
    System.Boolean

    Methods

    | Improve this Doc View Source

    Create(Nullable<Vector3>, Nullable<Vector3>, Nullable<Vector3>, Boolean)

    Creates a new Light.

    Declaration
    public static Light Create(Vector3? position = null, Vector3? rotation = null, Vector3? scale = null, bool spawn = true)
    Parameters
    Type Name Description
    System.Nullable<UnityEngine.Vector3> position

    The position of the Light.

    System.Nullable<UnityEngine.Vector3> rotation

    The rotation of the Light.

    System.Nullable<UnityEngine.Vector3> scale

    The scale of the Light.

    System.Boolean spawn

    Whether the Light should be initially spawned.

    Returns
    Type Description
    Light

    The new Light.

    | Improve this Doc View Source

    Create(Nullable<Vector3>, Nullable<Vector3>, Nullable<Vector3>, Boolean, Nullable<Color>)

    Creates a new Light.

    Declaration
    public static Light Create(Vector3? position, Vector3? rotation, Vector3? scale, bool spawn, Color? color)
    Parameters
    Type Name Description
    System.Nullable<UnityEngine.Vector3> position

    The position of the Light.

    System.Nullable<UnityEngine.Vector3> rotation

    The rotation of the Light.

    System.Nullable<UnityEngine.Vector3> scale

    The scale of the Light.

    System.Boolean spawn

    Whether the Light should be initially spawned.

    System.Nullable<UnityEngine.Color> color

    The color of the Light.

    Returns
    Type Description
    Light

    The new Light.

    | Improve this Doc View Source

    Get(LightSourceToy)

    Gets the Light belonging to the AdminToys.LightSourceToy.

    Declaration
    public static Light Get(LightSourceToy lightSourceToy)
    Parameters
    Type Name Description
    AdminToys.LightSourceToy lightSourceToy

    The AdminToys.LightSourceToy instance.

    Returns
    Type Description
    Light

    The corresponding AdminToys.LightSourceToy instance.

    Implements

    IWorldSpace
    IPosition
    IRotation
    IWrapper<T>

    Extension Methods

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