public static void CreateVFXMesh() { GameObject go = new GameObject("VFX Mesh"); VFXMesh newVfx = go.AddComponent <VFXMesh>(); EditorGUIUtility.PingObject(newVfx); Selection.activeTransform = newVfx.transform; }
private void OnEnable() { m = (VFXMesh)target; }