a.spritestudio.editor.xml.NodeReader.AtText C# (CSharp) Method

AtText() public method

文字列で取得
public AtText ( ) : string
return string
        public string AtText()
        {
            return node_.InnerText;
        }

Same methods

NodeReader::AtText ( string tag ) : string

Usage Example

            public Cell( NodeReader node, int textureWidth, int textureHeight )
            {
                name = node.AtText( "name" );
                int[] pos = node.AtIntegers( "pos", ' ' );
                size = node.AtIntegers( "size", ' ' );
                pivot = node.AtFloats( "pivot", ' ' );
                rotated = node.AtBoolean( "rotated" );

                float s = pos[0] / (float) textureWidth;
                float t = 1f - (pos[1] / (float) textureHeight);
                float u = s + (size[0] / (float) textureWidth);
                float v = t - (size[1] / (float) textureHeight);
                uv = new float[4] { s, v, u, t };
            }
All Usage Examples Of a.spritestudio.editor.xml.NodeReader::AtText