SpotLight
A cone-shaped light that emits from a point in the direction the entity is rotated.
Properties
Name Type Description
Color Color The color of the light. Intensity Float The strength of the light. Range Float How far in world units the cone reaches before falling off to zero. Spot Angle Float The outer angle of the cone in degrees. Controls how wide the light spreads. Inner Angle Float The inner angle of the cone in degrees. Within this angle the light is at full intensity. Between the inner and outer angles it falls off. Universal Inputs
These inputs are available on every entity in the engine, not just this one.
Name Parameter Description
GetValue String Reads the named exposed value from this entity and injects it into the pass variable pool. See Advanced Outputs for details. AddVelocity x,y,z Adds the given vector to the entity's current velocity. SetVelocity x,y,z Sets the entity's velocity to the given vector, discarding any current velocity. SetPosition x,y,z Teleports the entity to the given world position. SetScale x,y,z Sets the entity's scale. SetRotation x,y,z Sets the entity's rotation from Euler angles in degrees. AddImpulse x,y,z Applies an instantaneous physics impulse to the entity. Destroy — Despawns this entity on the next frame. Notes
SpotLight emits light in the direction the entity faces. Rotate it in the editor to aim the cone. The forward vector of the entity determines the light direction.
The Inner Angle and Spot Angle (outer angle) pair controls the softness of the cone edge. Setting them equal produces a hard-edged cone. Setting the inner angle to roughly half the outer angle produces a natural soft falloff at the edges, which looks better for most practical lights.