GithubHelp home page GithubHelp logo

createscript's Introduction

Unity自动生成UI脚本

###V2

修复引用数据无故丢失问题
修复编译后设置丢失问题
绑定UI时如果关联了prefab将会更新prefab

###V1

更改新建的文件的编码为Utf-8

Model 和 Controller 文件更改为自定义是否生成

修复删除空脚本的越界

项目介绍

无论是手动绑定对象还是代码绑定对象都过于繁琐,所以有了该插件

自动生成UGUI脚本,直接选择查找赋值或生成后从插件绑定对象

####插件将会生成

5个文件夹:

BuildController

Controller

BuildUI

Model

UI

5 个文件:

[可更改文件]

Name_UI.cs

Name_Model.cs

Name_Controller.cs

[更新文件,通常这些文件是不更改的]

Name_BuildUI.cs

Name_BuildController.cs

使用说明

Image a

生成脚本 [生成前必须选中 Hierarchy 面板对象]

更新脚本 [必须是从当前插件创建的脚本才能更新]

复制代码 [复制至剪切板]

挂载脚本 [必须先创建对应的UI文件才能挂在,无论是自己创建还是插件创建都可以]

绑定UI [只有从当前插件创建的UI才能绑定,且必须先把脚本挂载到对象上]

全选变量 [选择生成所有子对象,当对象被折叠时不能被选中]

全取消变量 [取消选择生成所有子对象]

全选属性器 [选择生成所有子对象属性器]

全取消属性器 [取消选择生成所有子对象属性器]

全选事件 [选择生成所有子对象事件]

全取消事件 [取消选择所有子对象事件]

全折叠 [隐藏所有子对象]

全展开 [显示所有子对象]

查找赋值 [通过transform.Find查找对象]

取消查找 [在 Hierarchy 面板绑定对象]

附带删除对象上空脚本插件

NothingSelected

先选择对象,然后点击NothingSelected,删除对象以及子对象上所有空脚本

createscript's People

Contributors

qq719549260 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

rookhandel

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.