Table of Contents

Class Light

Namespace
Exiled.API.Features.Toys
Assembly
Exiled.API.dll

A wrapper class for AdminToys.LightSourceToy.

public class Light : AdminToy, IWorldSpace, IPosition, IRotation, IWrapper<LightSourceToy>
Inheritance
Light
Implements
IWrapper<LightSourceToy>
Inherited Members
Extension Methods

Properties

Base

Gets the base AdminToys.LightSourceToy.

public LightSourceToy Base { get; }

Property Value

LightSourceToy

Color

Gets or sets the color of the primitive.

public Color Color { get; set; }

Property Value

Color

InnerSpotAngle

Gets or sets the inner angle of the light.

public float InnerSpotAngle { get; set; }

Property Value

float

Intensity

Gets or sets the intensity of the light.

public float Intensity { get; set; }

Property Value

float

LightShape

Gets or sets the shape that the Light emits.

public LightShape LightShape { get; set; }

Property Value

LightShape

LightType

Gets or sets the type of light the Light emits.

public LightType LightType { get; set; }

Property Value

LightType

Prefab

Gets the prefab.

public static LightSourceToy Prefab { get; }

Property Value

LightSourceToy

Range

Gets or sets the range of the light.

public float Range { get; set; }

Property Value

float

ShadowStrength

Gets or sets the shadow strength of the light.

public float ShadowStrength { get; set; }

Property Value

float

ShadowType

Gets or sets the type of shadows the light casts.

public LightShadows ShadowType { get; set; }

Property Value

LightShadows

SpotAngle

Gets or sets the angle of the light.

public float SpotAngle { get; set; }

Property Value

float

Methods

Create(Vector3?, Vector3?, Vector3?, bool)

Creates a new Light.

public static Light Create(Vector3? position = null, Vector3? rotation = null, Vector3? scale = null, bool spawn = true)

Parameters

position Vector3?

The position of the Light.

rotation Vector3?

The rotation of the Light.

scale Vector3?

The scale of the Light.

spawn bool

Whether the Light should be initially spawned.

Returns

Light

The new Light.

Create(Vector3?, Vector3?, Vector3?, bool, Color?)

Creates a new Light.

public static Light Create(Vector3? position, Vector3? rotation, Vector3? scale, bool spawn, Color? color)

Parameters

position Vector3?

The position of the Light.

rotation Vector3?

The rotation of the Light.

scale Vector3?

The scale of the Light.

spawn bool

Whether the Light should be initially spawned.

color Color?

The color of the Light.

Returns

Light

The new Light.

Get(LightSourceToy)

Gets the Light belonging to the AdminToys.LightSourceToy.

public static Light Get(LightSourceToy lightSourceToy)

Parameters

lightSourceToy LightSourceToy

The AdminToys.LightSourceToy instance.

Returns

Light

The corresponding AdminToys.LightSourceToy instance.