Exemple #1
0
        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 }
            };
        }
Exemple #2
0
        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 }
            };
        }