Giter Club home page Giter Club logo

unityconsole's People

Contributors

epidemicz avatar wenzil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

unityconsole's Issues

Errors on import of package

Assets/UnityConsole/Console/Scripts/ConsoleUI.cs(121,36): error CS1061: Type UnityEngine.UI.InputField' does not contain a definition forvalue' and no extension method value' of typeUnityEngine.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 foronSubmit' and no extension method onSubmit' of typeUnityEngine.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 foronSubmit' and no extension method onSubmit' of typeUnityEngine.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.

Changed CustomCommands to provide a list all commands command

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);
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.