|
Post by hairgrow on Jan 9, 2021 2:17:19 GMT
When using SpawnPrefab for networking, am I suppose to supply the transform of the prefab from PoolBoss? Or do I supply the transform of the prefab from a Resources folder in the project window?
I assume the prefab has to be set up in PoolBoss first, but I'm not clear how I need to supply the transform?
In my case I'm using Normcore which requires prefabs to be spawned in using Realtime.Instantiate(). I'm thinking I could do something close to this:
var instance = Realtime.Instantiate(SpawnPrefab().transform.name);
The idea being that when I call the network instantiation it can pull the object directly from PoolBoss.
|
|
|
Post by DarkTonic Dev on Jan 9, 2021 3:24:30 GMT
I have no idea what Normcore is and there is no support at this time for Network spawning. But it would have to work with pool boss. If you figure out a way to get it working let us know.
|
|
|
Post by hairgrow on Jan 9, 2021 5:37:29 GMT
So I've managed to get this to work. And it was fairly simple. Mainly due to the simplicity of using Normcore. You can find out more infomation here: normcore.io/Basically, I'm building a physics based VR game. Normcore is a component based networking system that is very easy to implement. It basically cuts out all the typical stuff that you would write from scratch using Photon. I've never used Photon because of this. Anyways your project would need access to the Normal Realtime API and then apply changes in PoolBoss. The Realtime.Instantiate() is treated like Unitys Instantiate() method. So all I needed to do was find where the prefab pools where performing there initial Instantiate() (to the create the pools) and then override it.
|
|
|
Post by hairgrow on Jan 9, 2021 5:43:16 GMT
I bought CGK specifically (for what it does) for Normcore. After doing a lot of research I happy with this purchase. But I also realize that I will have to maintain this change whenever PoolBoss is updated.
|
|
|
Post by DarkTonic Dev on Jan 9, 2021 9:40:19 GMT
I will need to check out Normcore. Got a link?
Please don't post source code on the forum. It's hard to read and also not allowed unless I do it for tiny fixes. Please delete that from your post. I would be better if you send me the modified file so I can examine the changes.
Glad you got it working.
|
|
|
Post by hairgrow on Jan 9, 2021 22:35:15 GMT
My bad for posting source. I'll send you a file plus a link to Normcore via support@darktonic
|
|
|
Post by DarkTonic Dev on Jan 9, 2021 23:29:16 GMT
Thank you much!
|
|