registerOnCursorSelectionUpdatedMapSceneObject method

void registerOnCursorSelectionUpdatedMapSceneObject(
  1. CursorSelectionCallback<MapSceneObject>? cursorSelectionMapSceneObjectCallback
)

Registers for cursor-hover map scene object selections.

Called when hovering over scene objects such as 3D models.

Parameters

  • cursorSelectionMapSceneObjectCallback: (CursorSelectionCallback<MapSceneObject>?) Receives the selected scene object. Pass null to unregister.

Also see:

Implementation

void registerOnCursorSelectionUpdatedMapSceneObject(
  final CursorSelectionCallback<MapSceneObject>?
  cursorSelectionMapSceneObjectCallback,
) {
  _cursorSelectionCallbackMapSceneObject =
      cursorSelectionMapSceneObjectCallback;

  GemKitPlatform.instance.filterEvent(
    pointerId,
    'onCursorSelectionMapSceneObject',
    cursorSelectionMapSceneObjectCallback == null,
  );
}