Skip to content

YuukiARIA/unity-meta-checker

Repository files navigation

unity-meta-checker

This command detects missing correspondence between Unity asset files and .meta files.

Installation

Download binary

TBW

Pull docker image

docker pull yuukiaria/unity-meta-checker

Or, just docker run

Usage

With release binary

/path/to/unity-meta-checker -p <UnityProjectPath>

With docker

docker run --rm -v <UnityProjectPath>:/workspace:ro,cached yuukiaria/unity-meta-checker

Commad Line Options

-h, --help

Display help and exit.

-p path, --project=path

Specify a path to Unity project, containing Assets folder.

-e, --raise-error

Exit with non zero code when any paths are reported.

If this option is not specified, exit with zero even if some paths are reported.

-o path, --output=path

Specify a path to file that reports be written to.

-t path, --template=path

Specify a path to template file used to render reports. Templates are processed by Golang's text/template package.

For example, use custom.yml.tpl with the following contents:

danglingMetaFiles:
{{- range .DanglingMetaPaths }}
  - {{ . }}
{{- else }} [] {{- end }}
metalessAssetPaths:
{{- range .MetalessAssetPaths }}
  - {{ . }}
{{- else }} [] {{- end }}

Then reports will be rendered like as:

danglingMetaFiles:
  - abc/def/ghi.meta
metalessAssetPaths: []