protected void CreateView(Material mat) { ViewObj = new GameObject { name = "View" }; ViewObj.transform.SetParent(Obj.transform, false); View = new CurvedMeshView(ViewObj) { Parent = this, MeshRenderer = { material = mat } }; }