Class EditorPlatformWatcher
Inherited Members
Namespace: Unity.VisualScripting
Assembly: Unity.VisualScripting.Core.Editor.dll
Syntax
public class EditorPlatformWatcher : IActiveBuildTargetChanged, IOrderedCallback
Properties
callbackOrder
Returns the relative callback order for callbacks. Callbacks with lower values are called before ones with higher values.
Declaration
public int callbackOrder { get; }
Property Value
| Type | Description |
|---|---|
| int |
Methods
OnActiveBuildTargetChanged(BuildTarget, BuildTarget)
This function is called automatically when the active build platform has changed.
Declaration
public void OnActiveBuildTargetChanged(BuildTarget previousTarget, BuildTarget newTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| BuildTarget | previousTarget | The build target before the change. |
| BuildTarget | newTarget | The new active build target. |