137place
0 votes Vote

Please add MicroSplat keywords global variable

I've experienced some Null reference exceptions at runtime when clearing and re-generating the terrain tiles. This only occurs in standalone builds.

To fix it I've:

added "public UnityEngine.Object microSplatKeywords;" to the Globals class in MapMagicObject.cs

added "using (Cell.LineStd) Draw.ObjectField(ref mapMagic.globals.microSplatKeywords, "Keywords");" to the MapMagicInspector.cs

added "public MicroSplatKeywords keywords;" to the ApplyCustomData class and
"keywords = data.globals.microSplatKeywords as MicroSplatKeywords" to the Finalize method in MicroSplatOutput.cs

Dmitriy , 11.01.2022, 11:33
Idea status: under consideration

Comments

Leave a comment