Skip to content

Instantly share code, notes, and snippets.

View romainPechot's full-sized avatar

Romain Péchot romainPechot

View GitHub Profile
@Legogo
Legogo / FbxImporter
Last active August 29, 2015 14:20
Auto setup import fbx settings
using UnityEngine;
using System.Collections;
#if UNITY_EDITOR
using UnityEditor;
public class FbxImporter : AssetPostprocessor {
void OnPreprocessModel() {
ModelImporter model = (ModelImporter)assetImporter;
model.addCollider = true;// This tells it to add a collider to the object