public static abstract sealed class Sandbox.SandboxToolExtensions
Methods
Showing 20 methods
public static System.IDisposable BeginApplyFrame(Sandbox.MovieMaker.MoviePlayer player)
Creates a scope for applying a frame in a `Sandbox.MovieMaker.MoviePlayer`. Dispose after modifying any properties controlled by the movie.
public static string ConstructTitle(Sandbox.SelectionSystem sys)
Create a feasible title from the current selection
public static Sandbox.SandboxToolExtensions.PropertyPath FindPathInScene(Sandbox.SerializedProperty prop)
Tries to find the path from a `Sandbox.GameObject` or `Sandbox.Component` to this property. Returns if not found.
public static Sandbox.Bind.Link FromConsoleVariable(Sandbox.Bind.Builder self, string name)
Bind the Left hand side to the value of the given console variable.
public static Sandbox.Bind.Link FromConsoleVariableInt(Sandbox.Bind.Builder self, string name)
Bind the Left hand side to the value of the given console variable as an integer.
public static Sandbox.GameObject GetContainingGameObject(Sandbox.SerializedProperty prop)
Tries to find the `Sandbox.GameObject` that contains the given property. Returns if not found.
public static Sandbox.SerializedObject GetSerialized(object self)
Shortcut for EditorTypeLibrary.GetSerializedObject( x )
public static bool RenderToVideo(Sandbox.SceneCamera camera, Sandbox.VideoWriter videoWriter, System.Nullable`1<System.TimeSpan> time = null)
Parameters
time: Default: null
public static System.Threading.Tasks.Task`1<bool> RenderToVideoAsync(Sandbox.SceneCamera camera, Sandbox.VideoWriter videoWriter, System.Nullable`1<System.TimeSpan> time = null)
Parameters
time: Default: null
public static System.Threading.Tasks.Task SetFavouriteAsync(Sandbox.Package package, bool state)
Mark this package as a favourite
public static System.Threading.Tasks.Task SetVoteAsync(Sandbox.Package package, bool up)
Add your vote for this package
public static System.Threading.Tasks.Task UpdateValue(Sandbox.Package package, string key, string value, System.Threading.CancellationToken token = null)
Update a value on this package
Parameters
token: Default: null
public static System.Threading.Tasks.Task`1<bool> UploadVideo(Editor.Asset asset, byte[] contents, bool isThumbVideo, bool hidden = False, string tag = null, Sandbox.Utility.DataProgress.Callback progress = null, System.Threading.CancellationToken token = null)
Upload a video for this package
Parameters
hidden: Default: Falsetag: Default: nullprogress: Default: nulltoken: Default: null
public static System.Threading.Tasks.Task WaitForLoadAsync(Sandbox.Resource resource, System.Threading.CancellationToken ct = null)
Creates a task that completes when `resource` is fully loaded.
Parameters
ct: Default: null
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Sandbox |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Sandbox.SandboxToolExtensions |