The same entity as in Lens Scripting.

interface LightSource {
    autoLightSourcePosition: boolean;
    autoShadowFrustumSize: boolean;
    autoShadowFrustumSizeExtend: number;
    castsShadows: boolean;
    color: vec4;
    decayLimit: boolean;
    decayRange: number;
    decayType: DecayType;
    diffuseEnvmapTexture: Editor.Assets.Texture;
    dynamicEnvInputTexture: Editor.Assets.Texture;
    enabled: boolean;
    envmapExposure: number;
    envmapFromCameraMode: EnvmapFromCameraMode;
    envmapRotation: number;
    estimationIntensity: number;
    estimationSharpness: number;
    id: Uuid;
    innerConeAngle: number;
    intensity: number;
    lightType: LightType;
    name: string;
    outerConeAngle: number;
    renderLayer: Editor.Model.LayerSet;
    sceneObject: Editor.Model.SceneObject;
    shadowBlurRadius: number;
    shadowColor: vec4;
    shadowDensity: number;
    shadowFrustumFarClipPlane: number;
    shadowFrustumNearClipPlane: number;
    shadowFrustumSize: number;
    shadowTextureSize: number;
    specularEnvmapTexture: Editor.Assets.Texture;
    type: string;
    useEnvmapFromCamera: boolean;
    useEstimation: boolean;
    getDirectlyReferencedEntities(): Entity[];
    getOwnedEntities(): Entity[];
    getTypeName(): string;
    isOfType(type: string): boolean;
    isSame(other: ScriptObject): boolean;
    remapReferences(referenceMapping: object): void;
}

Hierarchy (view full)

Properties

autoLightSourcePosition: boolean
autoShadowFrustumSize: boolean
autoShadowFrustumSizeExtend: number
castsShadows: boolean
color: vec4
decayLimit: boolean
decayRange: number
decayType: DecayType
diffuseEnvmapTexture: Editor.Assets.Texture
dynamicEnvInputTexture: Editor.Assets.Texture
enabled: boolean
envmapExposure: number
envmapFromCameraMode: EnvmapFromCameraMode
envmapRotation: number
estimationIntensity: number
estimationSharpness: number
id: Uuid

The unique id of the entity.

innerConeAngle: number
intensity: number
lightType: LightType
name: string
outerConeAngle: number
renderLayer: Editor.Model.LayerSet
sceneObject: Editor.Model.SceneObject
shadowBlurRadius: number
shadowColor: vec4
shadowDensity: number
shadowFrustumFarClipPlane: number
shadowFrustumNearClipPlane: number
shadowFrustumSize: number
shadowTextureSize: number
specularEnvmapTexture: Editor.Assets.Texture
type: string

The entity's type.

useEnvmapFromCamera: boolean
useEstimation: boolean

Methods

  • Beta

    Swap this entity for another one based on a JSON of the current entity id and the target entity id.

    Parameters

    • referenceMapping: object

    Returns void