Example #1
0
    private void Awake()
    {
        List <GUIContent> selectableShapeNameList = new List <GUIContent>();
        List <OVROverlay.OverlayShape> selectableShapesValueList = new List <OVROverlay.OverlayShape>();

        foreach (OVROverlay.OverlayShape value in Enum.GetValues(typeof(OVROverlay.OverlayShape)))
        {
            if (!OVROverlay.IsPassthroughShape(value))
            {
                string name = Enum.GetName(typeof(OVROverlay.OverlayShape), value);
                selectableShapeNameList.Add(new GUIContent(name, name));
                selectableShapesValueList.Add(value);
            }
        }
        selectableShapeNames  = selectableShapeNameList.ToArray();
        selectableShapeValues = selectableShapesValueList.ToArray();
    }