Editor Scripting API

    The same entity as in Lens Scripting.

    Hierarchy (View Summary, Expand)

    Index

    Constructors

    Properties

    bendMode: BendMode
    bendStiffness: number
    colliders: ColliderComponent[]
    collisionEnabled: boolean
    collisionFriction: number
    collisionOffset: number
    collisionStiffness: number
    debugModeEnabled: boolean
    enabled: boolean
    frameRate: number
    friction: number
    gravity: vec3
    horizontalAlignment: Horizontal
    id: Uuid

    The unique id of the entity.

    iterations: number
    mainMaterial: Material
    mass: number
    materials: Material[]
    maxAcceleration: number
    meshShadowMode: MeshShadowMode
    name: string
    renderOrder: number
    sceneObject: SceneObject
    shadowColor: vec4
    shadowDensity: number
    stretchMode: StretchMode
    stretchStiffness: number
    type: string

    The entity's type.

    updateNormalsEnabled: boolean
    vertexBindings: VertexBinding[]
    verticalAlignment: Vertical

    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