API ReferenceEditor
public static abstract sealed class Editor.ConsoleSystem
Methods
Showing 5 methods
public static string GetValue(string name, string defaultValue = null)
Get a convar value as a string
Parameters
defaultValue: Default: null
public static float GetValueFloat(string name, float defaultValue = 0)
Get a convar value as an float if possible.
Parameters
defaultValue: Default: 0
public static int GetValueInt(string name, int defaultValue = 0)
Get a convar value as an integer if possible.
Parameters
defaultValue: Default: 0
public static void Run(string command)
Run this command. This should be a single command.
public static void SetValue(string name, object value)
Try to set a console variable. You will only be able to set variables that you have permission to set.
No results match this filter.
Metadata
| Field | Value |
|---|---|
| Namespace | Editor |
| Type | class |
| Assembly | Sandbox.Tools |
| Doc ID | T:Editor.ConsoleSystem |