#How to reference a system base?

1 messages · Page 1 of 1 (latest)

torn maple
#

I understand a system base runs after being created by a bootstrapper but I want a gameobject to access a public method implemented in a system base. Howe do I reference a system base?

valid cosmos
#

Best if you don't

#

it's a huge anti-pattern for ECS

#

and would be much better if you do vice versa: access game object from your system

#

but if you really want to refactor this after a while: World.GetExistingSystemManaged

torn maple
#

Thanks

#

I'm trying to convert an existing project to ECS entirely for the better rendering, I'm not planning on converting my logic...

valid cosmos
#

then it's best if you access data instead of system

#

you can't just declare method in system

#

and call it

#

system updates consists of more than that

torn maple
#

ah kk, I'm just trying to wrap my head around ecs atm

bright lotus
#

ideally you could think of a system as just a collection of functions that runs at some particular times, rather than an object (especially not an object with any of its own data)