Advanced in-game console for Unity 3D, which replicates Windows cmd.
This Asset is depends of other repo, which is redistribution of MIT licensed C# options parser NDesk.Options (looks like original repo already missed, but there is original web page)
If you install this asset as package by Unity Package Manager, than packcage com.anupackages.ndesk-options will be installed automatically.
Optional dependency:
- if you want to use Expression Evaluation, you need to install following packages. Whis are also redistribution for Unity Package Manager usage. See more in How to Install
Provides easy way to create and invoke debug commands in game console at runtime. Also it displays console messages (logs, warnings, errors, exceptions, assertions) at runtime in a build.
User interface is created with uGUI and packed in a single SpriteAtlas.
-
It is possible to resize or change UI scale of the console window during the game.
-
Console messages can be filtered by message type the same way as in UnityEditor console window.
-
It is possible to filter logs by search query ste same way as in UnityEditor console window.\
- through Unity Package Manager
- git url:
https://github.com/ANU-CHEEKI-BREEKI/com.anupackages.debugconsole.git
- npm package: add following to your Scoped Registries
- git url:
"scopedRegistries": [
{
"name": "ANU",
"url": "https://registry.npmjs.org/",
"scopes": [
"com.anupackages"
]
}
]
Then you will be able to search all available packages directly in Unity Package Manager window
- download sources as zip archive and import to your project
- asset store?
Each star ★ on the project page brings new features closer. You can suggest new features in the Discussions.
Supported parameter types and some syntax flexibility:
string
- surround with
"
or'
- surround with
bool
(non case sensitive)- true:
1
,+
,yes
,y
,approve
,apply
,on
- false:
0
,-
,no
,n
,discard
,cancel
,off
- true:
Quaternion
- parsed as
Vector3
euler angles
- parsed as
Color32
- parsed as
Color
- parsed as
Color
- parsed as
Vector3
- parsed as
Vector4
- parsed as HtmlString, for example
#RGB
,#RRGGBBAA
,red
,cyan
, etc..
- parsed as
- array or list
[]
or()
are equivalented, so below listed samples for[]
only,
or[1, 2, 3]
or[1 2 3]
or[1 , 2 ,3 ]
are equivalented[n]
or justn
witout[]
: single itemn
[]
: empty colection
- vectors (
Vector2Int
,Vector2
,Vector3Int
,Vector3
,Vector4
)- parced as array of fixed size
[]
: all components equals zero[n]
or justn
witout[]
: all components equalsn
- GameObject and Component, any type inherited from Component
- used
GameObject.Find
and filtered byname
for Component types - can pass
null
(non case sensitive)
- used
ATTENTION:
to use ExpressionEvaluation install package:
original repo: https://github.com/ncalc/ncalc
NDeskOptions + C# optional and named parameters style
commands categories commands list UI and UI commands Infinite scroll
InstanceTargetType