Skip to content

Instantly share code, notes, and snippets.

@dilanshah
Created April 2, 2018 21:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dilanshah/d9bffb170a0ce683a160b70a5c04ce88 to your computer and use it in GitHub Desktop.
Save dilanshah/d9bffb170a0ce683a160b70a5c04ce88 to your computer and use it in GitHub Desktop.
FakeModelData is a wrapper for .obj byte data that will be treated like an asset at runtime for a generated object in the scene from dropbox
using UnityEngine;
using System.Collections;
public class FakeModelData : ScriptableObject {
public static bool splitByMaterial = false;
public static string[] searchPaths = new string[] { "", "%FileName%_Textures" + Path.DirectorySeparatorChar };
struct FakeModelFace
{
public string materialName;
public string meshName;
public int[] indexes;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment