-
Notifications
You must be signed in to change notification settings - Fork 106
Configuration
Configuration for Arcadia is done via a user-supplied configuration.edn file that should be placed under Assets in your Unity project. Options to configuration.edn are given in the format of a Clojure map literal, and are documented in Arcadia/configuration.edn, which is also the default configuration file.
To determine the final set of configuration settings, Arcadia merges the user-supplied configuration.edn under Assets with the built-in Arcadia/configuration.edn; in other words, user settings overwrite those specified in Arcadia/configuration.edn. Please do not modify the default configuration file itself, as it provides the default behavior of Arcadia!
Noteworthy configuration options include:
-
:export-namespacesVector of symbols of namespaces to compile when exporting.
-
:source-pathsSpecify paths to Clojure source Arcadia wouldn't pick up on otherwise.
-
:reactiveSpecify whether Arcadia should automatically respond to changes in the file system.
-
:reload-on-changeSpecify whether Arcadia should automatically reload Clojure files corresponding to already-loaded namespaces when they are saved, similar to Clojurescript's Figwheel library.
-
:non-serializable-hooksSpecify how to react when non-serializable hooks (anything but vars) are attached to a GameObject. Possible values are:
-
:errorthrow an exception -
:warningprint a warning to the Unity console (this is the default) -
:allowsilently allow it
-
-
:repl/injectionsSpecify forms to evaluate along with every form entered into the repl. Useful for things like always having the
clojure.replnamespace available (ie,:repl/injections (use 'clojure.repl)).
See Arcadia/configuration.edn for more details.