GetDirectionalShadowLight

Definition

string GetDirectionalShadowLight()

Description

This function returns the directional light name that casts the shadows. It should be noted that only one directional light in current VScene can cast the shadows.

Return Value

The directional light name that casts the shadows.

Example

value = ""

function Init()
    value = GetDirectionalShadowLight()

    message = string.format("\nDirectional shadow light name is : %s" ,value)
    PrintConsole(message)
end

function Update()

end
First we get the directional light name that can cast the shadow. Then we display the result in the console using the PrintConsole function.
adminGetDirectionalShadowLight