Quantcast
Channel: Photon Unity Networking (PUN) — Photon Engine
Viewing all articles
Browse latest Browse all 8947

PhotonView or PhotonTransformView not working after using PrefabUtility

$
0
0
Hi together

I am experiencing a strange problem and I hope somebody can help me as I have not found anything about it in any forum.
I am trying to auto create Prefabs, which use the Photon Stack (PhotonView, PhotonTransformView, PhotonAnimatorView). When I did this process manually, so copying the prefab and changing the settings manually everything works fine. When using PrefabUtility it seems that the positions of gameObjects which contain a photonTransformView and which are added to existing prefabs do not sync.

This would be an example:

Initial Prefab:
GameObjectParent (contains PhotonView)
-GameObjectChild1 (contains PhotonTransformView)
-GameObjectChild2 (contains PhotonTransformView)

Object to be nested inside GameObjectParent:
-GameObjectChild3 (contains PhotonTransformView)

After using PrefabUtility:
GameObjectParent (contains PhotonView)
-GameObjectChild1 (contains PhotonTransformView)
-GameObjectChild2 (contains PhotonTransformView)
-GameObjectChild3 (contains PhotonTransformView)

In this case GameObjectChild3 would not syncronise. I am very sure that this is not a matter of configuration as the same setup for me works when copying the Prefab manually.

I have spent hours checking where the error could be but I have not found any solution.
Thanks already for any help!

Viewing all articles
Browse latest Browse all 8947

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>