Skip to main content

Settings

ZenTS.Settings persists in ProjectSettings/ZenTS.asset. The table lists source defaults; existing serialized user values may differ and are not all reset by migration.

FieldDefault / meaning
enabletrue; install/build integration
enableUnityOptimizationstrue; bundled Unity Alias/MarshalAs
enableTsPlayGatetrue; TS check/stale emit before Play
typescriptBindingAssembliesAssembly-CSharp, ZenTS.Tests; configure business assemblies
enableJsDebuggerfalse
debuggerHostTypeNameEmpty selects built-in V8 Inspector; otherwise custom host
debuggerPort9230
debuggerWaitForAttachfalse; true blocks main thread until protocol continuation
debuggerSourcePathsEmpty; additional search paths for custom hosts
marshalAsXmlPathsAssets/CustomJsMarshalAsRules.xml
jsAliasXmlPathsAssets/CustomJsAliasRules.xml
jsExtensionXmlPathsAssets/CustomJsExtensionRules.xml

XML fields accept files/directories. Default example paths do not guarantee those files exist. The built-in source server stays within TsProject; search paths do not expose arbitrary files.

Timing and precedence​

XML is AOT-only: Editor snapshots, Player generated tables. Hot-update assemblies use attributes; Reset does not reload XML. No runtime registration/hot reload/Reload exists.

With Unity optimizations enabled, bundled rules precede user paths. Duplicate slots fail rather than last-writer-wins; different methods may share alias groups. Attributes precede valid XML without bypassing legality checks.

Reinitialize Editor sessions after config changes; regenerate/rebuild Players. Debugger settings apply on next domain initialization, not toggle alone.

SDK selection​

No QuickJS settings/plugins/fallback remain. Native V8 version follows locks/manifests/fingerprint; HostJs version follows platform VM. Active domains cannot switch engines. Match Library SDK, Assets plugin, and native link identity; restart after loaded-plugin updates. See build/version.