Interface TouchScreenControlsComponentDefinitionExtended

TouchScreenControls with convenience helpers. All helpers write the component onto the RootEntity (where the client reads it) and merge with the current value.

Hierarchy

Properties

componentId: number
componentName: string
componentType: LastWriteWinElementSet

Methods

  • 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

  • Hide the given on-screen buttons (merged into the current config).

    Parameters

    Returns void

  • Hide every on-screen gamepad button.

    Returns void

  • Hide the on-screen crosshair / reticle.

    Returns void

  • Hide the native virtual joystick.

    Returns void

  • Set which action the large central button triggers.

    Parameters

    Returns void

  • Show every on-screen gamepad button (clears the button hide list). Does NOT change the joystick/crosshair — use showJoystick() / showCrosshair() for those.

    Returns void

  • Show the on-screen crosshair / reticle.

    Returns void

  • Show the native virtual joystick.

    Returns void