Thanks Harald,
I'm not quite sure what that code is doing, but I'll give it a try.
If I hack this script, will it get overridden when a new Spine runtime is installed? 🤔 -- I guess the fix is to use and save a different iteration of the script.
--UPDATE--
Ok got it working! I just added a line to change each spawned game object layerID.
I also changed this. Hopefully that doesn't do anything nasty to the script.
const HideFlags GhostHideFlags = HideFlags.None;
Just out of curiosity, what is the benefit of using the HideFlags variable\const? .. from what I can see, it just makes it harder to debug the hierarchy 😵💫
Also I read online that getcomponent() isn't suggested to be run at runtime? Best to keep it in Awake()\Start()? Is it ok to keep running all the time?
pool[i] = go.GetComponent<SkeletonGhostRenderer>()
I use the ghost script whenever a power up is used, which is frequently. 🤔