Api Editor ConsoleSystem
class

ConsoleSystem

public static abstract sealed class ConsoleSystem

Methods

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.

static String GetValue(String name, String defaultValue = null)

Get a convar value as a string

static Int32 GetValueInt(String name, Int32 defaultValue = 0)

Get a convar value as an integer if possible.

static Single GetValueFloat(String name, Single defaultValue = 0)

Get a convar value as an float if possible.

static Void Run(String command)

Run this command. This should be a single command.

Assembly: Sandbox.Tools Namespace: Editor Full Name: Editor.ConsoleSystem