dongju.jeong Posted February 22, 2022 Share Posted February 22, 2022 (edited) When the setFrame() function was used only for layer 1 in the model in which layer 0 and layer 1 were registered, the model completely stopped. Does this mean that only layer 0 is an animation that can be played "current" and the rest of the layers (layer 1 ~) are tools for combining or interpolation with layer 0? Or, when I don't set anything, is only layer 0 activated internally and set to weight 1 ( setLayer(0,1,1) and others setLayer(x,0,0) )? Also, is layer 0 executed when using the Play() function? Edited February 22, 2022 by dongju.jeong Link to comment
karpych11 Posted February 22, 2022 Share Posted February 22, 2022 Hello, The layer only affects the resulting animation if it is enabled and has a weight. For the mesh_combined you need to invoke setLayer(1, 1, 1.0f) before setting the frame to see the result. No, layers are not only used for combining and interpolation with zero layer. For example, you can add a set of walking animations in different directions to different layers, and then only update their weights. Yes, when creating an object, only one active layer is created, which is used during playback. Link to comment
Recommended Posts