#Collect server args from an entity component.

1 messages · Page 1 of 1 (latest)

neat dune
#

Is it possible to get the args the server started with and set a component with them?

ember compass
#

You can use System.Environment.GetCommandLineArgs()

neat dune
#

on the authoring script?

#

or do i need a dedicated system?

ember compass
# neat dune where tho

You can use that anytime after the server has started. It wouldn't be during baking though. It can be on a monobehavior in the scene if you want. Really depends on what you are doing with it

neat dune
ember compass
#

in the ClientServerBoostrap would probably be the earliest you could grab them