Editor Scripting API

    The same entity as in Lens Scripting.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    advancedLayout: TextAdvancedLayout
    capitalizationOverride: CapitalizationOverride
    editable: boolean
    enableBatching: boolean
    enabled: boolean
    extrudeDirection: ExtrudeDirection
    extrusionDepth: number
    font: Font
    horizontalAlignment: Horizontal
    horizontalOverflow: HorizontalOverflow
    id: Uuid

    The unique id of the entity.

    letterSpacing: number
    lineSpacing: number
    mainMaterial: Material
    materials: Material[]
    meshShadowMode: MeshShadowMode
    name: string
    renderOrder: number
    sceneObject: SceneObject
    shadowColor: vec4
    shadowDensity: number
    showEditingPreview: boolean
    size: number
    sizeToFit: boolean
    stretchMode: StretchMode
    text: string
    touchHandler: InteractionComponent
    type: string

    The entity's type.

    verticalAlignment: Vertical
    verticalOverflow: VerticalOverflow
    worldSpaceRect: Editor.Rect

    Methods

    • Beta

      Parameters

      • origin: number
      • destination: number

      Returns void

    • 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