private void OnMeshSelected(object sender, EventArgs e) { mRenderer.Mesh = Onyx3DEngine.Instance.Resources.GetMesh(meshAssetField.SelectedAssetGuid); InspectorChanged?.Invoke(this, e); }
private void OnMaterialSelected(object sender, EventArgs e) { mRenderer.Material = Onyx3DEngine.Instance.Resources.GetMaterial(materialAssetField.SelectedAssetGuid); UpdateMaterial(); InspectorChanged?.Invoke(this, e); }