Search Results for

    Show / Hide Table of Contents

    Class DirectionalLight

    Directional light emits light from direction in space.

    Inheritance
    System.Object
    Object
    SceneObject
    Actor
    Light
    LightWithShadow
    DirectionalLight
    Implements
    ISerializable
    Inherited Members
    LightWithShadow.MinRoughness
    LightWithShadow.ShadowsDistance
    LightWithShadow.ShadowsFadeDistance
    LightWithShadow.ShadowsSharpness
    LightWithShadow.ShadowsStrength
    LightWithShadow.ShadowsDepthBias
    LightWithShadow.ShadowsNormalOffsetScale
    LightWithShadow.ContactShadowsLength
    LightWithShadow.ShadowsMode
    Light.Color
    Light.Brightness
    Light.ViewDistance
    Light.IndirectLightingIntensity
    Light.VolumetricScatteringIntensity
    Light.CastVolumetricShadow
    Actor.HasTag()
    Actor.HasTag(String)
    Actor.SetParent(Actor, Boolean, Boolean)
    Actor.GetChild(Int32)
    Actor.GetChild(String)
    Actor.GetChild(Type)
    Actor.GetChildren(Type)
    Actor.GetScript(Int32)
    Actor.GetScript(Type)
    Actor.GetScripts(Type)
    Actor.AddMovement(Vector3)
    Actor.AddMovement(Vector3, Quaternion)
    Actor.GetWorldToLocalMatrix(Matrix)
    Actor.GetLocalToWorldMatrix(Matrix)
    Actor.FindActor(String)
    Actor.FindActor(Type)
    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.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>()
    Actor.GetChildren<T>()
    Actor.GetScripts<T>()
    Actor.DestroyChildren(Single)
    Actor.RotateAround(Vector3, Vector3, Single)
    Actor.ToString()
    Actor.Children
    Actor.Scripts
    Actor.HideFlags
    Actor.Layer
    Actor.LayerName
    Actor.Tag
    Actor.Name
    Actor.Scene
    Actor.ChildrenCount
    Actor.ScriptsCount
    Actor.IsActive
    Actor.IsActiveInHierarchy
    Actor.StaticFlags
    Actor.Transform
    Actor.Position
    Actor.Orientation
    Actor.Scale
    Actor.Rotation
    Actor.PerInstanceRandom
    Actor.Direction
    Actor.LocalTransform
    Actor.LocalPosition
    Actor.LocalOrientation
    Actor.LocalScale
    Actor.Sphere
    Actor.Box
    Actor.BoxWithChildren
    Actor.EditorBox
    Actor.EditorBoxChildren
    Actor.HasContentLoaded
    Actor.IsPrefabRoot
    Actor.PhysicsScene
    Actor.IsStatic
    Actor.IsTransformStatic
    Actor.EulerAngles
    Actor.LocalEulerAngles
    Actor.HasChildren
    Actor.WorldToLocalMatrix
    Actor.LocalToWorldMatrix
    SceneObject.SetParent(Actor, Boolean)
    SceneObject.LinkPrefab(Guid, Guid)
    SceneObject.BreakPrefabLink()
    SceneObject.GetNamePath(Char)
    SceneObject.HasParent
    SceneObject.Parent
    SceneObject.OrderInParent
    SceneObject.HasPrefabLink
    SceneObject.PrefabID
    SceneObject.PrefabObjectID
    Object.__unmanagedPtr
    Object.__internalId
    Object.As<T>()
    Object.NewValue(Type)
    Object.New(String)
    Object.New<T>()
    Object.New(Type)
    Object.Find<T>(Guid)
    Object.Find(Guid, Type)
    Object.TryFind<T>(Guid)
    Object.Destroy(Object, Single)
    Object.Destroy<T>(T, Single)
    Object.GetUnmanagedPtr(Object)
    Object.GetUnmanagedInterface(Object, Type)
    Object.GetHashCode()
    Object.ID
    Object.TypeName
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: FlaxEngine
    Assembly: FlaxEngine.CSharp.dll
    Syntax
    [Unmanaged]
    public class DirectionalLight : LightWithShadow, ISerializable

    Constructors

    DirectionalLight()

    Initializes a new instance of the DirectionalLight.

    Declaration
    public DirectionalLight()

    Properties

    CascadeCount

    The number of cascades used for slicing the range of depth covered by the light. Values are 1, 2 or 4 cascades; a typical scene uses 4 cascades.

    Declaration
    [EditorOrder(65)]
    [Limit(1F, 4F, 1F)]
    [EditorDisplay("Shadow", null)]
    [Unmanaged]
    public int CascadeCount { get; set; }
    Property Value
    System.Int32

    Extension Methods

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