Git Product home page Git Product logo

uicontrolbinding's Introduction

Unity UIControlBinding

一种半自动控件绑定方案

特性

  1. 可以实现UI与代码的完全分离, 可以一个 prefab 对应多个逻辑代码,也可以一个逻辑代码使用不同的 prefab(更换UI皮肤或者节日皮肤等)。
  2. 界面制作人员只需要一个通用的控件绑定脚本,拖动需要绑定的控件到Inspector面板就可完成可交互控件的绑定工作。
  3. 逻辑编写人员可以点击UIControlData组件右上方齿轮图标内的 复制代码到剪贴板 菜单得到变量声明代码(2,3两个步骤可能都是逻辑编写人员来操作)
  4. 允许一个 Prefab 上在不同节点放置多个绑定脚本以便实现变量分组或者UI分区等操作, 此种模式下需要在根脚本绑定子脚本以便运行时可通过名字查找到。

操作示意图

拼完界面

image image

编写逻辑代码时

image

特别感谢

uicontrolbinding's People

Contributors

misaka-mikoto-tech avatar

Watchers

 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.