unityeditor

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: Apache-2.0 Imports: 25 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Manager        = "unity_editor"
	StartupTimeout = 2 * time.Minute
)
View Source
const ConnectionTimeout = 60 * time.Minute

Variables

View Source
var (
	ErrorGetProjectVersion = fmt.Errorf("Could not determinate project project / unity version")
)

Functions

func GetUnityEditorPath added in v1.0.0

func GetUnityEditorPath(editorPath string, projectVersion string) string

func GetUsedUnityVersion added in v1.0.0

func GetUsedUnityVersion(projectDir string) (string, error)

Types

type Device

type Device struct {
	generic.Device
	// contains filtered or unexported fields
}

func (*Device) ConnectionTimeout

func (d *Device) ConnectionTimeout() time.Duration

func (*Device) DeviceID

func (d *Device) DeviceID() string

func (*Device) DeviceIP

func (d *Device) DeviceIP() net.IP

func (*Device) DeviceName

func (d *Device) DeviceName() string

func (*Device) DeviceOSName

func (d *Device) DeviceOSName() string

func (*Device) DeviceOSVersion

func (d *Device) DeviceOSVersion() string

func (*Device) DeviceParameter added in v1.0.0

func (d *Device) DeviceParameter() map[string]string

func (*Device) DeviceState

func (d *Device) DeviceState() device.State

func (*Device) DeviceType added in v1.0.0

func (d *Device) DeviceType() int

func (*Device) Execute

func (d *Device) Execute(string)

func (*Device) GetScreenshot

func (d *Device) GetScreenshot() ([]byte, int, int, error)

func (*Device) HandleManagerConnection added in v1.0.0

func (d *Device) HandleManagerConnection()

func (*Device) HasFeature

func (d *Device) HasFeature(string) bool

func (*Device) InstallApp

func (d *Device) InstallApp(_ *app.Parameter) error

func (*Device) IsAppConnected

func (d *Device) IsAppConnected() bool

func (*Device) IsAppInstalled

func (d *Device) IsAppInstalled(_ *app.Parameter) (bool, error)

func (*Device) PlatformType added in v1.0.0

func (d *Device) PlatformType() int

func (*Device) RunNativeScript

func (d *Device) RunNativeScript(script []byte)

func (*Device) SetDeviceState

func (d *Device) SetDeviceState(state string)

func (*Device) StartApp

func (d *Device) StartApp(_ *app.Parameter, sessionId string, nodeUrl string) error

func (*Device) StartRecording

func (d *Device) StartRecording(path string) error

func (*Device) StopApp

func (d *Device) StopApp(_ *app.Parameter) error

func (*Device) StopRecording

func (d *Device) StopRecording() error

func (*Device) TargetVersion added in v1.0.0

func (d *Device) TargetVersion() string

func (*Device) UninstallApp

func (d *Device) UninstallApp(_ *app.Parameter) error

func (*Device) UnityLogStartListening added in v1.0.0

func (d *Device) UnityLogStartListening()

func (*Device) UnityLogStopListening added in v1.0.0

func (d *Device) UnityLogStopListening()

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func NewHandler

func NewHandler(cfg config.Manager, ds storage.Device) *Handler

func (*Handler) GetDevices

func (m *Handler) GetDevices() ([]device.Device, error)

func (*Handler) HasDevice

func (m *Handler) HasDevice(dev device.Device) bool

func (*Handler) Init

func (m *Handler) Init(masterUrl, nodeIdentifier string, authToken *string) error

func (*Handler) Name

func (m *Handler) Name() string

func (*Handler) RefreshDevices

func (m *Handler) RefreshDevices(force bool) error

func (*Handler) RegisterDevice

func (m *Handler) RegisterDevice(data device.RegisterData) (device.Device, error)

func (*Handler) Start

func (m *Handler) Start() error

func (*Handler) StartDevice

func (m *Handler) StartDevice(deviceID string) error

func (*Handler) Stop

func (m *Handler) Stop() error

func (*Handler) StopDevice

func (m *Handler) StopDevice(deviceID string) error

Jump to

Keyboard shortcuts

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