0

Can somebody tell me whether it is possible to instantiate a non - prefab object in a photon network? I have some objects created in runtime and I want to sync them by photon network. Please help me! Thanks!

2 Answers 2

0

Nah I don't think so. since photon is only instantiate prefabs from the resource folder. But maybe if you created same object on all player via passing info. through photon.

Sign up to request clarification or add additional context in comments.

Comments

0

You can use RPCs and RaiseEvent and then manually allocate photonView on object. In my project I using RaiseEvents and custom data and position controllers that allow me to spawn and sync more than 999 objects (photonView count restriction) and sync data only on demand, in this case, you need to share between users some guid and store this in controllers to find this in list or dictionary of spawned objects.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.