Setting up a Prefab GameObject variable with a Prefab child

kgoya 2 years ago updated 2 years ago 0

Hi there!

Getting started with Bolt 2, I'm getting stuck with a seemingly simple problem.

I have a prefab object (Character) which has a child (SelectionRing).

On my Class Definition for Character, I have a Game Object variable which I'd like to default to the SelectionRing (So I can enable/disable its Renderer at runtime).

But it seems like selecting the SelectionRing in the scene select the prefab one, which is not active on each instance at run time.

Am I going about this the wrong way or is it a limitation of Bolt?

I've tried to use a gameobject find but only end up with the highest instance in the hierarchy, instead of each prefab ones.

Thanks in advance for your help!

Edit: In the meantime I'm using the following solution (accounting for multiple children), but it feels more convoluted than it needs to be :)

Bolt Version:
Unity Version:
Mac OS
Scripting Backend:
.NET Version (API Compatibility Level):
Bolt 2