scan

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildManifestFromPayload

func BuildManifestFromPayload(payload EditorPayload) (bounds.Manifest, error)

func NormalizePrefabList

func NormalizePrefabList(raw string) []string

func ResolveSceneAssetPath

func ResolveSceneAssetPath(projectPath, scenePath string) (string, error)

Types

type EditorObjectBounds

type EditorObjectBounds struct {
	FileID int64      `json:"fileID"`
	Name   string     `json:"name"`
	Center [3]float64 `json:"center"`
	Size   [3]float64 `json:"size"`
}

type EditorPayload

type EditorPayload struct {
	Scene   string               `json:"scene"`
	Objects []EditorObjectBounds `json:"objects"`
	Prefabs []EditorPrefabBounds `json:"prefabs"`
}

func DecodeEditorPayload

func DecodeEditorPayload(data []byte) (EditorPayload, error)

func LoadEditorPayload

func LoadEditorPayload(path string) (EditorPayload, error)

type EditorPrefabBounds

type EditorPrefabBounds struct {
	Path   string     `json:"path"`
	Center [3]float64 `json:"center"`
	Size   [3]float64 `json:"size"`
}

type Runner

type Runner interface {
	RunEditorScan(projectPath, sceneAssetPath string, prefabPaths []string) ([]byte, error)
}

type UnityCLIRunner

type UnityCLIRunner struct{}

func (UnityCLIRunner) RunEditorScan

func (r UnityCLIRunner) RunEditorScan(projectPath, sceneAssetPath string, prefabPaths []string) ([]byte, error)

Jump to

Keyboard shortcuts

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