Phaser API Documentation

  Version: 
<static, private> UnityYAML(texture, sourceIndex, yaml)

Description:

Parses a Unity YAML File and creates Frames in the Texture. For more details about Sprite Meta Data see https://docs.unity3d.com/ScriptReference/SpriteMetaData.html

Parameters:

name type description
texture Phaser.Textures.Texture

The Texture to add the Frames to.

sourceIndex number

The index of the TextureSource.

yaml object

The YAML data.

Returns:
Description:

The Texture modified by this parser.

Since: 3.0.0