private void CreateMaterialProperties() { MaterialProperties.Clear(); CCategoryInfo category = new CCategoryInfo() { Name = "Material", Priority = 0 }; foreach (MaterialParameterViewModel parameterEntry in ParameterEntries) { Type paramType = ShaderHelpers.GetTypeFromParameterType(parameterEntry.ParameterType); if (parameterEntry.ParameterType == EShaderParameterType.Texture) { paramType = typeof(CAssetReference <CTextureAsset>); } PropertyInfo valuePropertyInfo = typeof(MaterialParameterViewModel).GetProperty("Value"); CObjectProperty objectProperty = new CObjectProperty(parameterEntry.Name, category, parameterEntry, parameterEntry.Value, paramType, valuePropertyInfo, null); MaterialProperties.Add(objectProperty); } m_propertyInspector.ShowInspectors(MaterialProperties); }