• Studio

  • Studio API

  • Bots

  • Web API

  • Designer Resources

  • Host Resources

  • Globals

    LongPressMiniProfileController

    LongPressMiniProfileController is a built-in component script that automatically handles long press interactions to display mini profiles for characters.

    This script sets itself up automatically in ClientAwake - you don't need to call any of its methods manually. All event handlers and tap detection are configured automatically when the script initializes.

    Simply attach this component to a GameObject in your scene, and it will handle long press interactions on characters.

    Methods

    HandleLongPressBegan

    ClientOnly
    NoSelfParameter

    Internal event handler automatically connected in ClientAwake to handle the beginning of a long press gesture. You do not need to call this method manually.

    Parameters

    Returns

    void

    HandleLongPressContinue

    ClientOnly
    NoSelfParameter

    Internal event handler automatically connected in ClientAwake to handle the continuation of an ongoing long press gesture. You do not need to call this method manually.

    Returns

    void

    HandleLongPressEnded

    ClientOnly
    NoSelfParameter

    Internal event handler automatically connected in ClientAwake to handle the end of a long press gesture. You do not need to call this method manually.

    Parameters

    Returns

    void

    RayCast

    ClientOnly
    NoSelfParameter

    Internal method used to detect taps. You do not need to call this method manually.

    Parameters

    position

    Returns

    boolean

    SetupTapMask

    ClientOnly
    NoSelfParameter

    Internal method called automatically in ClientAwake to set up tap mask for detecting long press events. You do not need to call this method manually.

    Returns

    void

    Updated 13 days ago

    PocketWorlds Icon

    © 2025 Pocket Worlds. All rights reserved.