Skip to content

Commit ce35cf1

Browse files
authored
Update README.md
1 parent 81d8a15 commit ce35cf1

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,13 @@ Custom commands can be added to the dev console by developers. They can be creat
5252
- Add the ``[DevConsoleCommand]`` attribute above a static method declaration, using the method body as the callback and arguments as command parameters.
5353

5454
#### Parameters
55-
Default supported parameter types implement the [``IConvertible``](https://docs.microsoft.com/en-us/dotnet/api/system.iconvertible) interface (e.g. int, float, string, bool, etc.)</br>
56-
Enums are also supported.</br>
57-
Commands that use a nullable bool (``Boolean?``) parameter accept "~", "!", "null", and "toggle" - used primarily as a toggle.</br>
58-
For example, executing "<b>showfps !</b>" will toggle showing the fps on-screen.</br></br>
59-
To add a custom type, use ``DevConsole.AddParameterType<T>()`` (see FAQ below).
55+
Default supported parameter types implement the [``IConvertible``](https://docs.microsoft.com/en-us/dotnet/api/system.iconvertible) interface (e.g. ``int``, ``float``, ``string``, ``bool``, etc.)</br>
56+
To add a custom type, use ``DevConsole.AddParameterType<T>()`` (see FAQ below).</br>
57+
- Enums are also supported.</br>
58+
- Nullable-type parameters accept "null" and "~" (e.g. ``GameObject`` or ``Color?``).
59+
- Value-type parameters accept "default" and "~" (e.g. ``Int32`` or ``Color``).
60+
61+
Commands that use a nullable bool (``Boolean?``) are used primarily as a toggle. For example, executing "<b>showfps ~</b>" will toggle showing the fps on-screen.
6062

6163
#### Example using Command.Create
6264
```cs

0 commit comments

Comments
 (0)