Api Sandbox SandboxToolExtensions
class

SandboxToolExtensions

public static abstract sealed class SandboxToolExtensions

Methods

static this Asset[] GetAssets(Project project)

Get all assets in this project

static this Task SetFavouriteAsync(Package package, Boolean state)

Mark this package as a favourite

static this Task SetVoteAsync(Package package, Boolean up)

Add your vote for this package

static this Task<Boolean> UploadFile(Package package, String absolutePath, String relativePath, Callback progress, CancellationToken token = null)

Mark this package as a favourite

static this Task<Boolean> UploadFile(Package package, Byte[] contents, String relativePath, Callback progress, CancellationToken token = null)

Upload a file used by this package

static this Task<Boolean> UploadVideo(Asset asset, Byte[] contents, Boolean isThumbVideo, Boolean hidden = False, String tag = null, Callback progress = null, CancellationToken token = null)

Upload a video for this package

static this Task UpdateValue(Package package, String key, String value, CancellationToken token = null)

Update a value on this package

static this Boolean RenderToPixmap(SceneCamera camera, Pixmap targetPixmap, Boolean async = False)

Render this camera to the target widget. Once you do this the target widget becomes "externally painted", so you won't be able to paint on it anymore with Qt's Paint stuff.

static this Boolean RenderToPixmap(CameraComponent camera, Pixmap targetPixmap, Boolean async = False)

Render this camera to the target widget. Once you do this the target widget becomes "externally painted", so you won't be able to paint on it anymore with Qt's Paint stuff.

static this Boolean RenderToPixmap(Scene scene, Pixmap targetPixmap, Boolean async = False)

Render this camera to the target widget. Once you do this the target widget becomes "externally painted", so you won't be able to paint on it anymore with Qt's Paint stuff.

static this Boolean RenderToVideo(SceneCamera camera, VideoWriter videoWriter, TimeSpan? time = null)
static this Task<Boolean> RenderToVideoAsync(SceneCamera camera, VideoWriter videoWriter, TimeSpan? time = null)
static this SerializedObject GetSerialized(Object self)

Shortcut for EditorTypeLibrary.GetSerializedObject( x )

static this PropertyPath FindPathInScene(SerializedProperty prop)

Tries to find the path from a GameObject or Component to this property. Returns if not found.

static this GameObject GetContainingGameObject(SerializedProperty prop)

Tries to find the GameObject that contains the given property. Returns if not found.

static this String ConstructTitle(SelectionSystem sys)

Create a feasible title from the current selection

static this Task WaitForLoadAsync(Resource resource, CancellationToken ct = null)

Creates a task that completes when is fully loaded.

static this IDisposable BeginApplyFrame(MoviePlayer player)

Creates a scope for applying a frame in a MoviePlayer. Dispose after modifying any properties controlled by the movie.

static this Link FromConsoleVariable(Builder self, String name)

Bind the Left hand side to the value of the given console variable.

static this Link FromConsoleVariableInt(Builder self, String name)

Bind the Left hand side to the value of the given console variable as an integer.

Assembly: Sandbox.Tools Namespace: Sandbox Full Name: Sandbox.SandboxToolExtensions