deps

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 10, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package deps resolves the external asset dependencies of a Unity file by mapping the GUIDs it references to asset paths within a project. It builds a guid→path index from the project's .meta files; the caller supplies the referenced GUIDs (extracted via the safety kernel) so this package stays free of any kernel dependency.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildIndex

func BuildIndex(projectRoot string) (map[string]string, error)

BuildIndex walks the project root for *.meta files and returns a map from each asset's GUID to its project-relative asset path (the .meta path minus the ".meta" suffix).

Types

type Resolution

type Resolution struct {
	GUID     string
	Path     string // project-relative asset path, "" when unresolved
	Resolved bool
}

Resolution is one referenced GUID and the asset path it maps to within the project, if any.

func Resolve

func Resolve(index map[string]string, guids []string) []Resolution

Resolve maps each referenced GUID to its asset path using the index. The result is deduplicated and sorted by GUID for deterministic output.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL