#Scene architecture in netcode project

1 messages · Page 1 of 1 (latest)

hardy minnow
#

i am woking on personal netcode project. now i am stucked at using scene. i know in ecs there is two way to handle scene: subscene vs using SceneSystem. What should i use now ?

queen prawn
#

it's same thing

#

SceneSystem is just a static api which calls EntityManager stuff

#

under the hood SubScene monobehaviour does same thing this SceneSystem api does

#

except it also ensures that subscene makes it into the build

hardy minnow
#

yeahh, but subscene is loaded to both clientworld and serverworld.

queen prawn
#

Subscene monobeh injects subscenes into all worlds. If you will look into it's source - it might give you idea about how to "revert" it for worlds you don't want.

still tree
#

*for auto load
for a netcode projects if you want seperate client/server scenes just have to load them manually

#

my subscene loading stuff in core allows you to specify scenes that should only load in client, world or both

#

if you want an example

queen prawn
#

Works nice for testing. In builds it's never a case

hardy minnow
hardy minnow
#

thanks