SiliconGhetto Engine API
    Preparing search index...

    Function findByTag

    • Find the first entity with a given tag.

      Parameters

      • t: string

        The tag to search for

      Returns number

      The entity ID of the first match, or 0 if none found

      const player = sg.findByTag('player');