Table of Contents

Class CharacterFinder

Namespace
GrindFest.GameMaster.Helpers
Assembly
GrindFest.dll

Helper class to find characters in the scene by name. Searches GameObject hierarchy and returns CharacterBehaviour components.

public static class CharacterFinder
Inheritance
object
CharacterFinder

Methods

FindByName(string)

Finds a character GameObject in the scene by name (case-insensitive partial match). Searches active GameObjects only.

FindCharacter(string)

Finds a CharacterBehaviour component by character name.

FindHero(string)

Finds a HeroController component by hero name.

GetAllLocalHeroes()

Finds all heroes in the local party.

GetSelectedHero()

Finds the local player's currently selected hero.