Issue with accessing Text by code/how do i acces a Text being spawned.
Hey i'm making a runescape like game. whenever a player completes an action wich is linked to a skill the player can obtain XP. when that happenends an animation is shown. animation describtion: a panel is shown within an rawiamge with the skill image + a text where i want to put the amount of xp the player got when completing an action. whenever the action is done i instantiate the panel wich in the hierachy looks like this: Parent: Panel - Children: RawImage + Text I'm trying to acces the Text by code but don't know how. i can't put a public variable and assign it in the inspector because it's being spawned in as a prefab ,Hey I'm triyng to make a xp shower (like in runescape 3 where if you obtain xp an animation is showed with the amount of xp you got). i instantiate a Prefab. the prefab looks like this: Parent = panel - Children = Text + RawImage. i wan't to acces the Text by code but i just don't know how. I cant make a public variable because the text is begin spawned in.