MeshFiter filter = gameObject.AddComponent<MeshFilter>(); filter.mesh = mesh;
AddCompont<>()为GameObject添加一个由<>泛型声明类型的组件,并返回这个组件的引用,可以直接修改它的值