public void create(SceneData data) { this.data = data; //material = Resources.LoadAssetAtPath("Assets/DecalFramework/Textures/DefaultDecal.mat", typeof(Material)) as Material; offset = 0.01f; //decalMesh = new Mesh(); /*if (projection == null) { * projection = new GameObject(); * projection.name = gameObject.name + "_proj"; * * projectionFilter = (MeshFilter)projection.AddComponent(typeof(MeshFilter)); * projection.AddComponent(typeof(MeshRenderer)); * * projectionFilter.sharedMesh = new Mesh(); * * //projection.transform.position = offset; * * projection.transform.parent = transform.parent; * }*/ oobb.update(gameObject); }