Settings

_images/settings.png

You can open settings using Window / AutoFields / Settings or Edit / Projects Settings… / AutoFields

This window allows you to configure default namespaces, script folder paths, field naming styles, and automatic tracking behavior.

Settings

  • Default Namespace

    Sets the base namespace used for generated scripts.

  • Default Scripts Folder

    Controls where the generated C# files are placed. You can use {Namespace} as a placeholder.
    {Namespace} will be replaced with DefaultScriptsNamespace.
    Any dots in the namespace will be replaced with the directory separator.
    Example:
    Namespace: MyCompany.Scripts.Toolkit
    Folder: Assets/Scripts/UI/{Namespace}/
    Result: Assets/Scripts/UI/MyCompany/Scripts/Toolkit/
  • Track All VisualTreeAssets

    If enabled, AutoFields will track all UXML files in the project automatically. Assets labeled DoNotTrack or located in the Packages will be skipped.

  • Property Name Case

    Choose between PascalCase or camelCase for generated property names.

  • Delete Scripts for Untracked Assets

    Automatically remove scripts if their source UXML files are no longer tracked.

  • Delete Scripts for Deleted Assets

    Automatically remove scripts if their source UXML files are removed.

  • Rebuild Scripts

    Updates all generated scripts. Use it in case the scripts were deleted or not updated automatically.

  • Show Tracked VisualTreeAssets

    Open Tracked Assets window.