Is it possible to observe a child object?
Options
Hi!
I have an object called playerprefab with it's scripts, and also i have a .blend model that is a child of the playerprefab object. I wanted to use Photon Animator View with Animator and Animation controller to serialize animations over peers. However, I cannot make it work because I can't find any working way to observe Photon Animator View because it isn't mentioned in inspector, drag&drop also doesn't work.
So, is there any way to do that, or I should create my own OnPhotonSerializeView method? If only the second part is an option, do you guys have any idea how to send trigger this way?
Thanks in advance,
roiek
I have an object called playerprefab with it's scripts, and also i have a .blend model that is a child of the playerprefab object. I wanted to use Photon Animator View with Animator and Animation controller to serialize animations over peers. However, I cannot make it work because I can't find any working way to observe Photon Animator View because it isn't mentioned in inspector, drag&drop also doesn't work.
So, is there any way to do that, or I should create my own OnPhotonSerializeView method? If only the second part is an option, do you guys have any idea how to send trigger this way?
Thanks in advance,
roiek
0
Comments
-
This looks very similar to:
viewtopic.php?f=17&t=5857&p=22412#p22412
You can use your own OnPhotonSerializeView method, yes, or you can use a script that assigns the observed component at runtime OR you make the component register itself as observed where needed.
If you know a bit about Editor coding, you could try and adjust the PhotonAnimatorView, too. Its inspector might be able to support this.0