Skip to content

Instantly share code, notes, and snippets.

@dilanshah
Last active April 4, 2018 18:11
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/ee026ab1668981d4d13d25e3a1d38934 to your computer and use it in GitHub Desktop.
Save dilanshah/ee026ab1668981d4d13d25e3a1d38934 to your computer and use it in GitHub Desktop.
Inheriting from scriptableobject
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
[CreateAssetMenu(fileName ="New User Object", menuName = "ObjectRuntime/Cube")]
public class ObjectRuntime : ScriptableObject {
public string name;
public List<FaceGroupData> faceGroups = new List<FaceGroupData>();
public List<FaceIndices> allFaces = new List<FaceIndices>();
public bool hasNormals = false;
public bool hasColors = false;
public ObjectRuntime()
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment