#Why is .getComponent here 'not a function' in console errors?
1 messages · Page 1 of 1 (latest)
A hotspot entry is a component?
Rewrote as
let animT = this.hotspots[i].getComponent(Hotspot);
animT.animCtrl.SetTrigger("Close");
Still not playing ball 😦
Hotspot is a script import { Hotspot } from "./Hotspot";
Yep
Then [i].gameObject.getComponent