private GUILayoutOption CreateRawOption(GUILayoutOptionType type, int index) { var option = CreateRawOption(type); rawOptionIndices[GUILayoutOptionTypeEnum.IndexOfBit(type)] = index; return(option); }
private int GetRawOptionIndex(GUILayoutOptionType type) { int typeIndex = GUILayoutOptionTypeEnum.IndexOfBit(type); int rawIndex = rawOptionIndices[typeIndex]; if (rawIndex == Index.Invalid) { throw new ArgumentException("The current instance do not contains specified option type", "type"); } return(rawIndex); }