Alpha / Depth Sorting issue

Heres the problem: Multiple transparent/diffuse materials and textures mapped to planes that are layer on top of one another (spaced a bit apart). The planes move, and so does the camera. As this happens, the planes pop all over the place, in front, in back, not respecting their true 3D space.

I have read through the forums over the past few days and found information that should solve my problem (renderQueue), but as i’m still very new to Unity, i’m looking for a bit of guidance, instead of beating my head against the wall.

I’m new to JavaScript (i know python), and i’m trying to figure out if the renderQueue is something the materials in Unity already have as a valid attribute, or if i need to create a new MTL with ShaderLab that has the attribute?

If its just calling an attribute thats already there, what is the syntax in Java (this is a key missing part of all the posts on this issue so far).

Any help with getting this figured out would be greatly appreciated.

Thanks!

I don’t know the answer to your question, although there is something about this in the script reference:

Basically, I just wanted to welcome a fellow python programmer! I hope your transition to Unity Script is easier than mine (it’s not really javascript, it’s more like ‘jscript’, or you can think of it as ‘boo’ wrapped in an ugly javascript shell).

Unlike python, function names in Unity are capitalized. And you can’t create functions with default arguments, you have to use function overloading instead. Instead of lists tuples you have two types of arrays, instead of dictionaries, you have hashtables (fortunately, they seem to work just like dictionaries). Also beware of booleans… they don’t always behave like python users would expect. For instance, an empty array evaluates as true.