Giter VIP home page Giter VIP logo

unitymygridhelper's Introduction

UnityMyGridHelper

My Unity Layerout Group,with tween 说明: unity中自带的Grid Layout Group是按照子物体的顺序来进行排序,因此在UGUI中不能控制layerout中子物体的显示层级,一定是后添加的物体层级在上。 很多时候我并不想要这样,我希望后添加的物体始终在最底层。 于是只能自己做一个,并且在运行模式中添加了缓动效果,让游戏过程中的排序过程更加流畅。

脚本会自动检测子物体的添加和删除,进行实时排序,因此和自带的layeroutgroup一样只需要添加子物体进layerout即可,不需要对代码进行任何操作。 支持在编辑器模式中实时调整,可以进行实时添加删除操作。

目前只实现了GridLayerout和VerticalLayerOut。

效果如下:

UI:

image

两个layout时,可以做到这样的动画效果。

image

场景中:

image

image

unitymygridhelper's People

Contributors

alayaella 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.