Giter Club home page Giter Club logo

klakui's Introduction

KlakUI

KlakUI is an extension of Klak that provides custom UI controls for the Wiring dataflow system.

gif

Installation

Download one of the unitypackage files from the Releases page and import it to a project.

Components

There are three types of control -- Knob, Button and Toggle.

gif

Also there are three types of node that are specialized for receiving input from the controls -- UIKnobInput, UIButtonInput and UIToggleInput.

screenshot

To receive input from the UI controls, the target property in the controls should be specified properly. After specifying the target, it starts sending input events on the UI control to the target node.

screenshot

License

Copyright (C) 2016, 2017 Keijiro Takahashi

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

klakui's People

Contributors

keijiro 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

klakui's Issues

Not Working in Newer Versions of Unity

Hi,

I see you are using the "CreateUIObjectRoot" and the "CreateUIObject" functions of "UnityEngine.UI.DefaultControls".
It seems like in newer Versions of Unity, these functions are not working anymore.
Is there a plan of updating this or do you know a way around this problem?

I get this error when trying to create one of your Klak UI elements.

TargetParameterCountException: Number of parameters specified does not match the expected number. System.Reflection.MonoMethod.ConvertValues (System.Reflection.Binder binder, System.Object[] args, System.Reflection.ParameterInfo[] pinfo, System.Globalization.CultureInfo culture, System.Reflection.BindingFlags invokeAttr) (at <437ba245d8404784b9fbab9b439ac908>:0) System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0) System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0) Klak.UI.DefaultControls.CreateUIElementRoot (System.String name, UnityEngine.Vector2 size) (at Assets/Klak/UI/Helper/DefaultControls.cs:41) Klak.UI.DefaultControls.CreateToggle (UnityEngine.Sprite bgSprite, UnityEngine.Sprite fillSprite, UnityEngine.Font font) (at Assets/Klak/UI/Helper/DefaultControls.cs:144) Klak.UI.MenuOptions.AddToggle (UnityEditor.MenuCommand menuCommand) (at Assets/Klak/UI/Editor/MenuOptions.cs:63)

call functions in different c# files scripts

Hi, keijiro. I´m Laureano from Argentina, trying to make my VJ set on unity.
Thanks for sharing all your projects they are really helpful.

I am trying to use KlakUi for controlling some simple functions that i have wrote.
How do I call a function on another file? Can you gave me a tip on that.
Ore have any example where I can see how you connect them?
Thanks and congratulations on your work.

Exceptions with .NET 4.6

Upgrading to Unity 2017.1 and switching to .NET4.6 throws "Value out of expected range" exception. Issue is resolved by removing the type argument from var slot = AddInputSlot("set_" + prop.Name);

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.