[SOLVED] "You cannot raise events on entities which are not attached"??
Options
Comments
-
When you use BoltNetwork.Instantiate, Bolt will automatically attach it for you.0
-
Thank you.^
Though I didn't specify, my problem was regarding GameObjects/Entities pre-existing in the scene, not Instantiated GameObjects/Entities.
For anyone who may be having the same problem, my solution was to press Bolt -> Generate Scene Object Ids. Also, any entities pre-existing in the scene you want to be networked must be prefab instances. (Make sure to Bolt -> Compile Assembly whenever messing with prefabs).
Like stanchion said, for instantiated entities, they are automatically attached to the network.
0 -
You can also manually attach entities in the scene at any time
https://docs.google.com/document/d/1yjPE69MdT3BhY-HjARFdqkIpqXujORLsKiX6B8GWoLI/edit#heading=h.qryf6o6gpaka0