// Gets the first pass of a material on a sprite and plays the animation from its texture varsprite = script.getSceneObject().getFirstComponent("Component.SpriteVisual"); varmaterial = sprite.getMaterial(0); material.getPass(0).baseTex.control.play(-1,0.0);
// Print number of passes print("Pass count = " + material.getPassCount().toString());
Overrides a material's property. Used with MaterialMeshVisual.
Example