void GetCategoryAndLabelStringValue(out string categoryName, out string labelName) { categoryName = null; labelName = null; var spriteLib = spriteResolver.spriteLibrary; if (spriteLib != null) { int entryHash = SpriteResolver.ConvertFloatToInt(m_SpriteKey.floatValue); spriteLib.GetCategoryAndEntryNameFromHash(entryHash, out categoryName, out labelName); if (string.IsNullOrEmpty(categoryName) || string.IsNullOrEmpty(labelName)) { int labelHash = SpriteResolver.ConvertFloatToInt(m_LabelHash.floatValue); int categoryHash = SpriteResolver.ConvertFloatToInt(m_CategoryHash.floatValue); m_SpriteKey.floatValue = SpriteResolver.ConvertCategoryLabelHashToSpriteKey(spriteLib, categoryHash, labelHash); entryHash = SpriteResolver.ConvertFloatToInt(m_SpriteKey.floatValue); spriteLib.GetCategoryAndEntryNameFromHash(entryHash, out categoryName, out labelName); } } }