impact

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssetPathFromAbsolute added in v0.8.0

func AssetPathFromAbsolute(assetsRoot, filePath string) (string, error)

AssetPathFromAbsolute renders an absolute path as a project-relative "Assets/..." slash path. It errors if the path is not under assetsRoot.

func LoadPrefabGUID

func LoadPrefabGUID(targetPath string) (string, error)

func ResolvePath added in v0.8.0

func ResolvePath(p string) string

ResolvePath returns p made absolute and symlink-resolved (falling back to a cleaned absolute, then a cleaned raw path, if resolution fails), so it can be used for physical-path identity checks. Two different spellings of one file (a symlinked directory, or a cwd-relative arg that normalizes differently from an absolute one — e.g. macOS /tmp vs /private/tmp) resolve to the same string.

func SamePath added in v0.8.0

func SamePath(left, right string) bool

SamePath reports whether two paths resolve to the same physical file. A lexical Clean compare alone misses symlinked/cwd-relative spellings; ResolvePath does not.

Types

type FileHit

type FileHit struct {
	Path       string
	References int
	FileIDs    []int64
}

type Request

type Request struct {
	ProjectPath string
	TargetPath  string
	SceneScope  []string
	MaxDepth    int
}

type Result

type Result struct {
	Status         string
	PrefabPath     string
	PrefabGUID     string
	SceneHits      []FileHit
	PrefabHits     []FileHit
	DepthLimitHit  bool
	MaxNestedDepth int
}

func ScanPrefabImpact

func ScanPrefabImpact(req Request) (Result, error)

Jump to

Keyboard shortcuts

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