internal Dimension ReadDimension(StyleValueHandle handle) { bool flag = handle.valueType == StyleValueType.Float; Dimension result; if (flag) { float value = StyleSheet.CheckAccess <float>(this.floats, StyleValueType.Float, handle); result = new Dimension(value, Dimension.Unit.Unitless); } else { result = StyleSheet.CheckAccess <Dimension>(this.dimensions, StyleValueType.Dimension, handle); } return(result); }
internal float ReadFloat(StyleValueHandle handle) { bool flag = handle.valueType == StyleValueType.Dimension; float result; if (flag) { Dimension dimension = StyleSheet.CheckAccess <Dimension>(this.dimensions, StyleValueType.Dimension, handle); result = dimension.value; } else { result = StyleSheet.CheckAccess <float>(this.floats, StyleValueType.Float, handle); } return(result); }
internal ScalableImage ReadScalableImage(StyleValueHandle handle) { return(StyleSheet.CheckAccess <ScalableImage>(this.scalableImages, StyleValueType.ScalableImage, handle)); }
internal string ReadMissingAssetReferenceUrl(StyleValueHandle handle) { return(StyleSheet.CheckAccess <string>(this.strings, StyleValueType.MissingAssetReference, handle)); }
internal UnityEngine.Object ReadAssetReference(StyleValueHandle handle) { return(StyleSheet.CheckAccess <UnityEngine.Object>(this.assets, StyleValueType.AssetReference, handle)); }
internal string ReadResourcePath(StyleValueHandle handle) { return(StyleSheet.CheckAccess <string>(this.strings, StyleValueType.ResourcePath, handle)); }
internal string ReadVariable(StyleValueHandle handle) { return(StyleSheet.CheckAccess <string>(this.strings, StyleValueType.Variable, handle)); }
internal string ReadEnum(StyleValueHandle handle) { return(StyleSheet.CheckAccess <string>(this.strings, StyleValueType.Enum, handle)); }
internal Color ReadColor(StyleValueHandle handle) { return(StyleSheet.CheckAccess <Color>(this.colors, StyleValueType.Color, handle)); }