Interface MeshRendererComponentDefinitionExtended

Hierarchy

Properties

componentId: number
componentName: string
componentType: LastWriteWinElementSet

Methods

  • Delete the current component to an entity, return null if the entity doesn't have the current component.

    • Internal comment: This method adds the <entity,component> to the list to be reviewed next frame

    Parameters

    • entity: Entity

      Entity to delete the component from

    Returns null | PBMeshRenderer

  • Marks the entity as deleted and signals it cannot be used ever again. It must clear the component internal state, produces a synchronization message to remove the component from the entity.

    Parameters

    • entity: Entity

      Entity ID that was deleted.

    • markAsDirty: boolean

    Returns void

  • Set a box in the MeshRenderer component

    Parameters

    • entity: Entity

      entity to create or replace the MeshRenderer component

    • Optional uvs: number[]

      uvs coord

    Returns void

  • Set a cylinder in the MeshRenderer component

    Parameters

    • entity: Entity

      entity to create or replace the MeshRenderer component

    • Optional radiusBottom: number
    • Optional radiusTop: number

    Returns void

  • Set a plane in the MeshRenderer component

    Parameters

    • entity: Entity

      entity to create or replace the MeshRenderer component

    • Optional uvs: number[]

      uvs coord

    Returns void

  • Set a sphere in the MeshRenderer component

    Parameters

    • entity: Entity

      entity to create or replace the MeshRenderer component

    Returns void