Editor Scripting API

    The same entity as in Lens Scripting.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

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

    The unique id of the entity.

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

    The entity's type.

    useEnvmapFromCamera: 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

    MMNEPVFCICPMFPCPTTAAATR