wenzil / unityconsole Goto Github PK
View Code? Open in Web Editor NEWEasy-to-use developer console for Unity 5
License: MIT License
Easy-to-use developer console for Unity 5
License: MIT License
Assets/UnityConsole/Console/Scripts/ConsoleUI.cs(121,36): error CS1061: Type UnityEngine.UI.InputField' does not contain a definition for
value' and no extension method value' of type
UnityEngine.UI.InputField' could be found (are you missing a using directive or an assembly reference?)
Assets/UnityConsole/Console/Scripts/ConsoleUI.cs(44,36): error CS1061: Type UnityEngine.UI.InputField' does not contain a definition for
onSubmit' and no extension method onSubmit' of type
UnityEngine.UI.InputField' could be found (are you missing a using directive or an assembly reference?)
Assets/UnityConsole/Console/Scripts/ConsoleUI.cs(38,36): error CS1061: Type UnityEngine.UI.InputField' does not contain a definition for
onSubmit' and no extension method onSubmit' of type
UnityEngine.UI.InputField' could be found (are you missing a using directive or an assembly reference?)
Seems like the onSubmit isn't there or something. Im using unity 5.
I changed the example CustomCommands.cs's "Help" command to provide a list of all available commands, their description, and their usage when "Help" is entered without any other args. Here is the new help method:
private static string Help(params string[] args)
{
// if we got it wrong, get help about the HELP command
if (args.Length == 0)
{
String commands = "";
List<KeyValuePair<string, ConsoleCommand>> list = ConsoleCommandsDatabase.database.ToList();
foreach (KeyValuePair<string, ConsoleCommand> pair in list)
{
commands += string.Format (
"{0}: {1} Usage: {2}\n", pair.Key,
pair.Value.description,
pair.Value.usage);
}
return Help("HELP") + "\nList of available commands:\n" + commands;
}
// if we got it right, get help about the given command
string commandToGetHelpAbout = args[0].ToUpper();
ConsoleCommand found;
if(ConsoleCommandsDatabase.TryGetCommand(commandToGetHelpAbout, out found))
return string.Format("Help information about {0}\n\r\tDescription: {1}\n\r\tUsage: {2}", commandToGetHelpAbout, found.description, found.usage);
else
return string.Format("Cannot find help information about {0}. Are you sure it is a valid command?", commandToGetHelpAbout);
}
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.