popcron / console Goto Github PK
View Code? Open in Web Editor NEWA quick command parser for use in games.
License: MIT License
A quick command parser for use in games.
License: MIT License
In your description you say, that there is a Console.Key property, which can be changed to assing a different opening-key. However in your Code (inside the IsConsoleKey methode) you hardcode the value to BackQuote and Tilde. As a user with a German Keyboard-layout i have neither Key directly on my Keyboard. Therefore i would like to ask you, to implemet the Console.Key property as described in your Readme.
Use case
text
is privatehistory
is privateConsole.HistorySize
but it is privateconsoleStyle
and fpsCounterStyle
are privateSuggestion
Expose methods / properties to access and optional modify it.
Trace:
TypeLoadException: Could not resolve type with token 01000052 (from typeref, class/assembly System.Security.SecuritySafeCriticalAttribute, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089)
at (wrapper managed-to-native) System.MonoCustomAttrs.GetCustomAttributesInternal(System.Reflection.ICustomAttributeProvider,System.Type,bool)
at System.MonoCustomAttrs.GetCustomAttributesBase (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inheritedOnly) [0x00013] in <90a642d7960f4705a593893ec21af00c>:0
at System.MonoCustomAttrs.GetCustomAttributes (System.Reflection.ICustomAttributeProvider obj, System.Type attributeType, System.Boolean inherit) [0x00037] in <90a642d7960f4705a593893ec21af00c>:0
at System.Reflection.MonoMethod.GetCustomAttributes (System.Type attributeType, System.Boolean inherit) [0x00000] in <90a642d7960f4705a593893ec21af00c>:0
at Popcron.Console.Extensions.GetCommand (System.Reflection.MemberInfo member) [0x00000] in <575704bda24940fbaf49a680370d44f6>:0
at Popcron.Console.Command.Create (System.Reflection.MethodInfo method, System.Type type) [0x00000] in <575704bda24940fbaf49a680370d44f6>:0
at Popcron.Console.Library.FindCommands () [0x00049] in <575704bda24940fbaf49a680370d44f6>:0
at Popcron.Console.Library.get_Commands () [0x00007] in <575704bda24940fbaf49a680370d44f6>:0
at Popcron.Console.Category.Create (System.Type type) [0x00018] in <575704bda24940fbaf49a680370d44f6>:0
at Popcron.Console.Library.FindCategories () [0x0003d] in <575704bda24940fbaf49a680370d44f6>:0
at Popcron.Console.Parser.Initialize () [0x00000] in <575704bda24940fbaf49a680370d44f6>:0
at Console.Awake () [0x0001b] in <575704bda24940fbaf49a680370d44f6>:0
Using the key input in a build isn't letting me open the console.
when scene manager open new scene and click on ~ can't open it and if insert in void start(){} so it reports error.
I am looking to use your console in a project I'm working on, but I don't see a License included in the repository.
Are there plans to add one?
Issue:
On a QWERTY keyboard layout, the console key is actually the "^" caret key.
In Unity, this translates to KeyCode.Backslash
(numeric: 92)
Suggestions
Would be cool if this could be automatically recognized which layout is used and then chooses the appropriate default console key.
A mention of this in the FAQ could probably resolve some starting issues for ppl with this layout like myself :)
Console.IsConsoleChar
also needs include this keycode. It would be great if this would be a public char array to add/remove chars. ๐
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.