Giter Site home page Giter Site logo

unityeditorextension's Introduction

UnityEditorExtension 这个工程目前包含了以下功能:

展示了GUI.skin.customStyles下所有的GUIStyle

图片
点击Tools/GUIStyleViewer中的Styles
在这里插入图片描述 对于每一种GUIStyle绘制了active和inactive两种情况。
代码差别如下:

GUILayout.Toggle( false, inactiveText, thisStyle, GUILayout.Width( width / 2 ) );
GUILayout.Toggle( true, activeText, thisStyle, GUILayout.Width( width / 2 ) );

对于一些Button相关的样式,两种情况绘制的结果是不一样的。


展示了Unity自带的Texture2D

点击Tools/GUIStyleViewer中的Icons
在这里插入图片描述 源码来自Show Built In Resources 进行了以下修改:

  • 修复了绘制非Texture2D类型的Texture会报错
  • 改进搜索框样式

关于作者:

  • 水曜日鸡,简称水鸡,ACG宅。曾参与索尼**之星项目研发,具有2D联网多人动作游戏开发经验。

CSDN博客:https://blog.csdn.net/j756915370
知乎专栏:https://zhuanlan.zhihu.com/c_1241442143220363264
Q群:891809847

unityeditorextension's People

Contributors

756915370 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

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.