• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Help Needed with Unity Shader on a Quad.

usHallgrim

Refugee
Hi All:

I'm adding barley/oat/wheat crops to the game. I decided to go with 2d panels (Unity Quads). The quads will show up in game, but I either get black where it should be transparent or a magenta quad (I am color vision impaired so not exactly sure there) depending on the settings. I've tried a bunch, tried all the material and shader suggestions I've found but I think most are outdated? I'm using Unity 2022.3.62f1.

Does anyone have settings that are known to currently working with Unity 2022.3.62f1 and 7DTD v2.x? Or a link where I can find those settings.

Any help at all would be much appreciated. I'm soooo stuck.
 
I have asked ChatGPT and Grok to do a deep dive to find somewhere in the modding community someone that has solved this since unity 2022.3.62d1 came out and no luck. It seems logical that if the search engines can't find it, the answer is locked behind Discord or some other wall. Or there just isn't a solution, certainly not one posted that is readily findable. So I gave up on 2d panels, but I'll summarize a workaround:

What I did was create a 2d plane in Blender, imported a reference 2d .png image. traced around the outer edge by extending vertices, used the knife tool to cutout the "holes" (transparent areas) between the grain stalks. Then used the reference image to create the material/texture. Then I applied a decimator and solidifier 2cm thick (4cm might have been better). Then exported the FBX. So what you are left with is a 3d object that appears to be a 2d object but pretty low polys. The standard Unity shader works just fine for the 7DTD engine because there is no transparency issue. The object actually has holes in it. Anyway, that's the workaround I came up with.
 
Back
Top