editor

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareVersions

func CompareVersions(a, b string) int

CompareVersions compares two Unity editor versions.

Types

type ProjectVersion

type ProjectVersion struct {
	EditorVersion             string `json:"m_EditorVersion"`
	EditorVersionWithRevision string `json:"m_EditorVersionWithRevision"`
}

ProjectVersion contains information about the supported editor version for the project.

func ProjectVersionFromProject

func ProjectVersionFromProject(projectPath string) (*ProjectVersion, error)

ProjectVersionFromProject attempts to load the editor version information given the path to a Unity project.

func (*ProjectVersion) VersionAndRevision

func (p *ProjectVersion) VersionAndRevision() (string, string)

VersionAndRevision parses the editor version number and revision from the project version file.

Jump to

Keyboard shortcuts

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