Giter Club home page Giter Club logo

dynamicui's Introduction

DynamicUI

This simple Unity project shows how you can easily create dynamic UIs. This allows for the usage of the same UI in different situations and for the use of different UIs in the same situation (to have multiple themes for example).

In the Assets folder of this project you'll find two folder, OLD and NEW, that you are encouraged to explore. They show two different implementations of the way dynamic UIs are managed.

Installation and Running

  1. Download the project (using git clone or downloading the zip file)
  2. Open the project in Unity
  3. Select a scene in either OLD or NEW format and open it
  4. Press Play and see that a UI was created
  5. Explore the code.

Usage

Create a Prefab starting with a Canvas and create a Hook, this bundle will allow you to create multiple prefabs for the same Hook.

Drag one of the prefabs in Old/Prefabs/UI to the scene to see how it is being used. Play special attention to the way the buttons interact with the hook.

OLD: Create a Class that inherits Control and implement your code there.

NEW: Create a Class and implement your code there, instantiate a Control Class and use it to show/hide your UI.

See MainScript.cs and YesNoControl.cs to see how it is made.

Credits

Ricardo Rodrigues - [email protected]

dynamicui's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

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.