public static StyleInt ReadStyleEnum <T>(this StyleSheet sheet, StyleValueHandle handle, int specificity) { return(new StyleInt(StyleSheetCache.GetEnumValue <T>(sheet, handle)) { specificity = specificity }); }
public StyleInt ReadStyleEnum <T>(int index) { var value = m_Values[index]; return(new StyleInt(StyleSheetCache.GetEnumValue <T>(value.sheet, value.handle)) { specificity = specificity }); }