void OnValidate() { Mesh mesh = Instantiate(meshFilter.sharedMesh); mesh.MarkDynamic(); Ray ray = EditorScript.GetMouseRay(); }