Giter Club home page Giter Club logo

dynamicatlas's Introduction

DynamicAtlas

动态图集使用方案 算法主要来自https://github.com/DaVikingCode/UnityRuntimeSpriteSheetsGenerator

使用场景一般用于更新频率不大的UI界面,并且如果使用图集的话,往往会用到一张大图集上的几张图片而已。

使用方法: 想要使用动态图集的Image,使用DynamicImage组件,直接挂载的Sprite会在运行时打入动态图集中, 动态图集可以选择分辨率大小

以下是一些重要函数说明: #DynamicImage public void SetImage(string name) 运行时动态加载资源 public void RemoveImage(bool clearRange = false) 当界面需要关闭时,需要移除动态图集上的资源,内部采用引用计数

#DynamicAtlasMgr public void GetTeture(string name, OnCallBackTexRect callback) 这里需要改成你自己的加载图片的方式,DEMO里面用的是Resources,肯定不合适

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.