public static textureInfoForSourceImage ( this sheet, string sourceImageName ) : SKTextureInfo, | ||
sheet | this | |
sourceImageName | string | |
return | SKTextureInfo, |
public static SKTextureInfo textureInfoForSourceImage( this SKSpriteSheet sheet, string sourceImageName )
{
foreach( var info in sheet.imageTextureInfo )
{
if( info.file == sourceImageName )
return info;
}
return null;
}