Skip to content

Instantly share code, notes, and snippets.

@whaison
whaison / FixMask.cs
Created May 4, 2016 01:18
FixMask.cs (Unity5.3.4p3)
//saves you from agonizing manual clicking "Fix Mask" on each user-created clip,
//when you have updated/edited the original FBX changing the skeleton hierarchy
//drop this in your Scripts/Editor folder,
//select FBX's and right click context menu Fix Animation Masks
//reImporot Foloder
//tested on Unity 5.3.4p3
//minor update, sets all transforms of the avatarMask to active (assuming you are just using 'Mask Definition Create From This Model' with all transforms active (Default behavior)
@a-type
a-type / gist:b26e8fc02e64da9e9709
Created February 24, 2015 20:06
Unity3D 3D Bezier Curve Mesh Generator
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class Bezier3D : MonoBehaviour
{
public Vector3 start = new Vector3(0, 0, 0);
public Vector3 end = new Vector3(1, 1, 0);
public Vector3 handle1 = new Vector3(0, 1, 0);
public Vector3 handle2 = new Vector3(1, 0, 0);