Search Results for

    Show / Hide Table of Contents

    Class SpotLight

    Spot light emits light from the point in a given direction.

    Inheritance
    System.Object
    Object
    SceneObject
    Actor
    Light
    LightWithShadow
    SpotLight
    Implements
    ISerializable
    Inherited Members
    LightWithShadow.InvalidateShadow()
    LightWithShadow.MinRoughness
    LightWithShadow.ShadowsDistance
    LightWithShadow.ShadowsFadeDistance
    LightWithShadow.ShadowsSharpness
    LightWithShadow.ShadowsStrength
    LightWithShadow.ShadowsDepthBias
    LightWithShadow.ShadowsNormalOffsetScale
    LightWithShadow.ContactShadowsLength
    LightWithShadow.ShadowsUpdateRate
    LightWithShadow.ShadowsUpdateRateAtDistance
    LightWithShadow.ShadowsResolution
    LightWithShadow.ShadowsMode
    Light.Color
    Light.Brightness
    Light.ViewDistance
    Light.IndirectLightingIntensity
    Light.VolumetricScatteringIntensity
    Light.CastVolumetricShadow
    Actor.SetLayerRecursive(Int32)
    Actor.SetLayerNameRecursive(String)
    Actor.HasTag()
    Actor.HasTag(Tag)
    Actor.HasTag(String)
    Actor.AddTag(Tag)
    Actor.AddTagRecursive(Tag)
    Actor.RemoveTag(Tag)
    Actor.SetParent(Actor, Boolean, Boolean)
    Actor.GetChild(Int32)
    Actor.GetChild(String)
    Actor.GetChild(Type)
    Actor.GetChildren(Type)
    Actor.DestroyChildren(Single)
    Actor.GetScript(Int32)
    Actor.GetScript(Type)
    Actor.GetScripts(Type)
    Actor.AddMovement(Vector3)
    Actor.AddMovement(Vector3, Quaternion)
    Actor.GetWorldToLocalMatrix(Matrix)
    Actor.GetLocalToWorldMatrix(Matrix)
    Actor.OnDebugDraw()
    Actor.OnDebugDrawSelected()
    Actor.GetPrefabRoot()
    Actor.FindActor(String)
    Actor.FindActor(Type, Boolean)
    Actor.FindActor(Type, String)
    Actor.FindActor(Type, Tag, Boolean)
    Actor.FindScript(Type)
    Actor.HasActorInHierarchy(Actor)
    Actor.HasActorInChildren(Actor)
    Actor.IntersectsItself(Ray, Single, Vector3)
    Actor.Intersects(Ray, Single, Vector3)
    Actor.LookAt(Vector3)
    Actor.LookAt(Vector3, Vector3)
    Actor.LookingAt(Vector3)
    Actor.LookingAt(Vector3, Vector3)
    Actor.ToBytes(Actor[])
    Actor.FromBytes(Byte[])
    Actor.FromBytes(Byte[], Dictionary<Guid, Guid>)
    Actor.TryGetSerializedObjectsIds(Byte[])
    Actor.ToJson()
    Actor.FromJson(String)
    Actor.Clone()
    Actor.OnEnable()
    Actor.OnDisable()
    Actor.OnParentChanged()
    Actor.OnTransformChanged()
    Actor.OnActiveChanged()
    Actor.OnActiveInTreeChanged()
    Actor.OnOrderInParentChanged()
    Actor.OnStaticFlagsChanged()
    Actor.OnLayerChanged()
    Actor.OnBeginPlay()
    Actor.OnEndPlay()
    Actor.AddStaticFlags(StaticFlags)
    Actor.RemoveStaticFlags(StaticFlags)
    Actor.SetStaticFlag(StaticFlags, Boolean)
    Actor.HasStaticFlag(StaticFlags)
    Actor.ResetLocalTransform()
    Actor.AddChild(Type)
    Actor.AddChild<T>()
    Actor.GetChild<T>()
    Actor.TryGetChild<T>(T)
    Actor.GetOrAddChild<T>()
    Actor.AddScript(Type)
    Actor.AddScript<T>()
    Actor.GetScript<T>()
    Actor.TryGetScript<T>(T)
    Actor.FindScript<T>()
    Actor.FindActor<T>(Boolean)
    Actor.FindActor<T>(String)
    Actor.FindActor<T>(Tag, Boolean)
    Actor.GetChildren<T>()
    Actor.GetScripts<T>()
    Actor.RotateAround(Vector3, Vector3, Single, Boolean)
    Actor.ToString()
    Actor.Children
    Actor.Tags
    Actor.Layer
    Actor.Name
    Actor.IsActive
    Actor.StaticFlags
    Actor.PerInstanceRandom
    Actor.LocalPosition
    Actor.LocalOrientation
    Actor.LocalScale
    Actor.Sphere
    Actor.Box
    Actor.BoxWithChildren
    Actor.EditorBox
    Actor.EditorBoxChildren
    Actor.HasContentLoaded
    Actor.IsPrefabRoot
    Actor.IsStatic
    Actor.IsTransformStatic
    Actor.WorldToLocalMatrix
    Actor.LocalToWorldMatrix
    SceneObject.SetParent(Actor, Boolean)
    SceneObject.LinkPrefab(Guid, Guid)
    SceneObject.BreakPrefabLink()
    SceneObject.GetNamePath(Char)
    SceneObject.IsDuringPlay
    SceneObject.HasParent
    SceneObject.HasPrefabLink
    SceneObject.PrefabID
    SceneObject.PrefabObjectID
    Object.__unmanagedPtr
    Object.__internalId
    Object.Finalize()
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.Find<T>(Guid, Boolean)
    Object.Find(Guid, Type, Boolean)
    Object.TryFind<T>(Guid)
    Object.TryFind(Guid, Type)
    Object.Destroy(Object, Single)
    Object.DestroyNow(Object)
    Object.Destroy<T>(T, Single)
    Object.Equals(Object)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.FromUnmanagedPtr(IntPtr)
    Object.MapObjectID(Guid)
    Object.RemapObjectID(Guid)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [ActorContextMenu("New/Lights/Spot Light")]
    [ActorToolbox("Lights")]
    [Unmanaged]
    public class SpotLight : LightWithShadow, ISerializable

    Constructors

    SpotLight()

    Initializes a new instance of the SpotLight.

    Declaration
    public SpotLight()

    Properties

    FallOffExponent

    Controls the radial falloff of light when UseInverseSquaredFalloff is disabled.

    Declaration
    [EditorOrder(14)]
    [EditorDisplay("Light", null)]
    [Limit(2F, 16F, 0.01F)]
    [VisibleIf("UseInverseSquaredFalloff", true)]
    [Unmanaged]
    public float FallOffExponent { get; set; }
    Property Value
    System.Single

    IESBrightnessScale

    Global scale for IES brightness contribution.

    Declaration
    [EditorOrder(213)]
    [Limit(0F, 10000F, 0.01F)]
    [EditorDisplay("IES Profile", "Brightness Scale")]
    [Unmanaged]
    public float IESBrightnessScale { get; set; }
    Property Value
    System.Single

    IESTexture

    IES texture (light profiles from real world measured data).

    Declaration
    [EditorOrder(211)]
    [EditorDisplay("IES Profile", "IES Texture")]
    [Unmanaged]
    public IESProfile IESTexture { get; set; }
    Property Value
    IESProfile

    InnerConeAngle

    Sets the spot light's inner cone angle (in degrees).

    Declaration
    [EditorOrder(21)]
    [EditorDisplay("Light", null)]
    [Limit(1F, 89F, 0.1F)]
    [Unmanaged]
    public float InnerConeAngle { get; set; }
    Property Value
    System.Single

    OuterConeAngle

    Gets or sets the spot light's outer cone angle (in degrees).

    Declaration
    [EditorOrder(22)]
    [EditorDisplay("Light", null)]
    [Limit(1F, 89F, 0.1F)]
    [Unmanaged]
    public float OuterConeAngle { get; set; }
    Property Value
    System.Single

    Radius

    Gets or sets light radius.

    Declaration
    [EditorOrder(1)]
    [EditorDisplay("Light", null)]
    [Limit(0F, 10000F, 0.1F)]
    [Unmanaged]
    public float Radius { get; set; }
    Property Value
    System.Single

    SourceRadius

    Light source bulb radius.

    Declaration
    [EditorOrder(2)]
    [EditorDisplay("Light", null)]
    [Limit(0F, 1000F, 0.01F)]
    [Unmanaged]
    public float SourceRadius { get; set; }
    Property Value
    System.Single

    UseIESBrightness

    Enable/disable using light brightness from IES profile.

    Declaration
    [EditorOrder(212)]
    [EditorDisplay("IES Profile", "Use IES Brightness")]
    [Unmanaged]
    public bool UseIESBrightness { get; set; }
    Property Value
    System.Boolean

    UseInverseSquaredFalloff

    Whether to use physically based inverse squared distance falloff, where Radius is only clamping the light's contribution.

    Declaration
    [EditorOrder(13)]
    [EditorDisplay("Light", null)]
    [Unmanaged]
    public bool UseInverseSquaredFalloff { get; set; }
    Property Value
    System.Boolean

    Extension Methods

    Extensions.ReflectiveCompare<T>(T, T)
    Extensions.DeepClone<T>(T)
    Extensions.RawClone<T>(T)
    In This Article
    Back to top Copyright © 2012-2024 Wojciech Figat