Skip to content

Instantly share code, notes, and snippets.

View TrickyHandz's full-sized avatar

Tim McDaniel TrickyHandz

  • Anodyne Technologies
  • Arizona
View GitHub Profile
@nin-jat
nin-jat / ControllerMenu.cs
Created January 10, 2019 12:51
vive radial menus
// Created by Tom Parker (Those45Ninjas).
// This code was used in https://www.youtube.com/watch?v=n7lzkyXVxJ8
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.Events;
using UnityEngine.UI;
public class ControllerMenu : MonoBehaviour
{
@Democide
Democide / ReorderableListUtility.cs
Last active November 15, 2022 14:01
A simple helper class that generates a Reorderable List in Unity that can be folded out.
using UnityEngine;
using UnityEditor;
using UnityEditorInternal;
public static class ReorderableListUtility {
public static ReorderableList GetListWithFoldout(SerializedObject serializedObject, SerializedProperty property, bool draggable, bool displayHeader, bool displayAddButton, bool displayRemoveButton) {
var list = new ReorderableList(serializedObject, property, draggable, displayHeader, displayAddButton, displayRemoveButton);
list.drawHeaderCallback = (Rect rect) => {