SpotLightComponent
Summary
Represents a spot light component attached to an actor, emitting light in a cone shape.
Remarks
Danger
All calls made within this class MUST be performed on the Master Thread. See Threads.RunLater on how to safely call this from an asynchronous thread. Failure to comply with this can cause catastrophical failures as the engine is not designed for this.
Definition
Namespace: SDT4.Managed.Core.Components
Assembly: SDT4.Managed.Core.dll
struct SpotLightComponent
Implements:
IActorComponent
Fields
| Name | Type | Description |
|---|---|---|
Properties
| Name | Type | Description |
|---|---|---|
public get; set; Owner |
ActorHandle | |
public static get; ComponentId |
Guid | The unique identity of SpotLightComponent. |
public get; set; Color |
ColorRgba | Gets or sets the light's colour emission. |
public get; set; Intensity |
Single | Gets or sets the brightness intensity of the spot light. |
public get; set; AttenuationRadius |
Single | Gets or sets the maximum distance from the light source at which its illumination attenuates to zero. |
public get; set; OuterAngle |
Single | Gets or sets the outer cone angle, in radians, defining the boundary where light intensity falls off completely. |
public get; set; InnerAngle |
Single | Gets or sets the inner cone angle, in radians, defining the region of full illumination before attenuation begins. |
Methods
public virtual Boolean Equals(Object? obj)
Summary: Determines whether the specified object is equal to the current component.
Parameters:
obj(Object?): The object to compare with the current component.
Returns:
- Boolean:
if the specified object is equivalent to this component; otherwise, .
public virtual Int32 GetHashCode()
Summary: Returns the hash code for this component.
Returns:
- Int32: A 32-bit signed integer hash code.
public virtual String ToString()
Summary: Returns a string representation of the component.
Returns:
- String: A string representing the component instance.