最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

c# - How to change just one specific instance of a layer from a timeline in .aseprite file in unity 2D? - Stack Overflow

programmeradmin0浏览0评论

I am currently trying to work with Aseprite files in Unity. I have an image of an enemy face, and 3 different (aseprite timeline) layers for that sprite, one or the face itself without the eyes and mouth, one layer for the mouth and one layer for the eyes. I was trying to find a way in Unity where I can change the current timeline only for the eyes as a reaction for the player location (to follow the player) and the mouth as a reaction to another event. Siplifying my question, how can I change the timeline of the layers independently (without changing the timeline of other layers). Every place I see shows how timelines works, but I couldn't find anywhere explaining how to change each layer independently. I don't know if there is a straight forward implementation for it, like "if (...) {animation.layerEye = 3;}". But if there is not a straight forward implementation, how do you guys solve this kind of situation without having to make a different sprite for each permutation of all layers (because I dont want to be making like 10x10x10 different sprites because of the permutations).

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论