LogicalError / realtime-CSG-for-unity

Realtime-CSG, CSG level editor for Unity
https://realtimecsg.com
MIT License
732 stars 76 forks source link

Default material in error #380

Open heptaspirit opened 1 year ago

heptaspirit commented 1 year ago

version: Unity 2022.2.2f1 image

I just creat a new 3D template and import CSG by UPM, and all materials are in error, their shader is InternalErrorShader. It is forbidden to edit these material since they are in Package folder.

heptaspirit commented 1 year ago

Fixed by referring #370. I don't know why importing into 2022.2 by UPM doesn't set these materials with Standard shader.

mrdaemon commented 1 year ago

This also happens when installing via git clone in Packages directory under 2019.4.31f1, unfortunately. Unsure how to resolve this, beyond re-making a crude approximation of the materials in my own assets and using them

itsjustmonu commented 10 months ago

I got this same error on 2022.3.4f1 but nothing seemed to change even after the fix. Anyone reason for this?

nukeandbeans commented 10 months ago

Hey everyone, apologies for taking so long to get around to this. This is a bug, and is intended to be fixed. RealtimeCSG is supposed to generate materials for the appropriate pipeline, but when imported via UPM, it cannot generate the materials as the folder is write-protected. In the future, it should generate them in Assets/ instead of Packages/, but we just need to figure out the best way to go about that.