Class Light
A wrapper class for AdminToys.LightSourceToy.
Inherited Members
Namespace: Exiled.API.Features.Toys
Assembly: Exiled.API.dll
Syntax
public class Light : AdminToy, IWorldSpace, IPosition, IRotation, IWrapper<LightSourceToy>
Properties
| Improve this Doc View SourceBase
Gets the base AdminToys.LightSourceToy.
Declaration
public LightSourceToy Base { get; }
Property Value
Type | Description |
---|---|
AdminToys.LightSourceToy |
Color
Gets or sets the color of the primitive.
Declaration
public Color Color { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Color |
Intensity
Gets or sets the intensity of the light.
Declaration
public float Intensity { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
Range
Gets or sets the range of the light.
Declaration
public float Range { get; set; }
Property Value
Type | Description |
---|---|
System.Single |
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 SourceCreate(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. |
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. |
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. |