Think I found a bug . . . anim layer masks seem to get lost when a template is instantiated from a script.
Sample project is here:
https://playcanvas.com/project/860297/overview/animlayermaskswithtemplates
The two templates on the outside are placed in the hierarchy using the editor, and the masking works just fine. The template in the middle is instantiated in script and the masking does not work.
I’ve been able to work around this by assigning the mask in script after the template is instantiated, but I figure that should not be necessary, and I’m guessing that it’s not by design?