public DefaultDirectionalLightEntity( IEditorQuery <DefaultDirectionalLightEntity> editorQuery, StandardDirectionalLightComponent standardDirectionalLightComponent) { if (editorQuery.Mode != EditorQueryMode.BakingSchema) { RegisterComponent(standardDirectionalLightComponent); editorQuery.MapTransform(this, Transform.Assign); editorQuery.MapCustom(this, "diffuse", "diffuse", x => standardDirectionalLightComponent.LightColor = x, Color.White); } }
public DefaultDirectionalLightEntity( IEditorQuery<DefaultDirectionalLightEntity> editorQuery, StandardDirectionalLightComponent standardDirectionalLightComponent) { if (editorQuery.Mode != EditorQueryMode.BakingSchema) { RegisterComponent(standardDirectionalLightComponent); editorQuery.MapTransform(this, Transform.Assign); editorQuery.MapCustom(this, "diffuse", "diffuse", x => standardDirectionalLightComponent.LightColor = x, Color.White); } }