Supported Parameter Types/Component

From ReflexCLI
Revision as of 07:20, 23 September 2017 by Rtm223 (talk | contribs)
Jump to: navigation, search


GameObjects and Components

Unity Engine GameObject and all Component types can be used as parameters for console commands. This includes Transform and MonoBehaviour types, so any of your scripts derived from Monobehaviours can be used in the console.

Referencing objects in the scene

The console takes a GameObject name as the identifier for the object and then attempts to find a matching object in the scene.

Limitations

As of version 1.0.0, the console cannot handle

  • Names that contain spaces.
  • Multiple GameObjects with the same name.
  • GameObjects that have multiple of the same components on them (as they have the same name).

Object Active State

Currently the Console attempts to find all objects of type in all open scenes, regardless of whether they have are active or not. At v1.0.0 this can sometimes give false negatives (if the root game object is disabled, for instance) and may not be desirable. In future releases this behaviour will be refined and configurable in the settings.