DevTool
  • 🏡Home
  • ⭐Getting Started
  • Manual
    • DevTool Canvas
    • DevTool Settings
    • New Input System
  • API
    • CommandTemplate
    • DevToolUtility
Powered by GitBook
On this page
  • Methods
  • GetRootDirectory
  • CreateCommand
  • CombinePathToInstance
  • Properties
  • Commands
  • OrderedCommands
  1. API

DevToolUtility

DevToolUtility static class which allow you access to low level API.

Namespace: RenownedGames.DevTool

Methods

GetRootDirectory

Collected root directory.

None

Directory

For performance reasons, it is recommended to not use this function every frame. Instead, cache the result in a member variable at startup.

public static Directory GetRootDirectory();

CreateCommand

Create command instance by specified member.

  1. MemberInfo: MemberInfo reference

  2. Instance: Instance of member info, only for non-static members

  3. Path: Path to command

  4. Order: Command order

  5. Command: Output reference of command instance

Bool: True if command possible to create.

public static bool CreateCommand(MemberInfo memberInfo, Object instance, string path, int order, out Command command)Properties

CombinePathToInstance

Combine command path to specified Object instance.

  1. Instance: Command Object instance.

  2. Path: Path to command

String: New path to specified Object.

public static bool CreateCommand(MemberInfo memberInfo, Object instance, string path, int o

Properties

Commands

Enumerate through all commands in project.

IEnumerable<Commands>

For performance reasons, it is recommended to not use this function every frame. Instead, cache the result in a member variable at startup.

public static IEnumerable<Command> Commands;

OrderedCommands

Enumerate through all commands in project ordered by priority.

IEnumerable<Commands>

For performance reasons, it is recommended to not use this function every frame. Instead, cache the result in a member variable at startup.

public static IEnumerable<Command> OrderedCommands;
PreviousCommandTemplate

Last updated 2 years ago