Is it possible to get the atlas for a font texture?
Using the PackTextures method returns an array of indexes of all the different textures in a given texture atlas, apparently. That's hugely useful, and I assume that with the font textures Unity is...
View ArticleHow to properly set up quad positions for 2d with an orthographic camera?
For once, a brief question, as a corollary to my longer one here:http://answers.unity3d.com/questions/20459/how-to-retain-full-quality-on-a-rotated-textured-quadBasically, I'm still seeing quality drop...
View ArticleFailed to get cursor position: Access is denied.
Every so often, the error "Failed to get cursor position: Access is denied." crops up from our game built on Unity 3. We never had this on Unity 2.61 on our other game, but it's extremely sporadic even...
View ArticleIs it possible to upgrade the included version of Mono manually?
I know that Unity 3 is now running Mono 2.6, and that's wonderful -- it's such a huge performance and functionality increase from the older versions of Unity. However, the garbage collector still...
View ArticleHow to stop sound from skipping during GC collection?
I've seen this question, of course. Granted, you want the GC to run as infrequently as possible. But, I have a very large game, and in mine it often runs about every 8 seconds. This is most troubling...
View ArticleHow to set up additive blending on a surface shader?
So, in a normal shader I have the line: Blend SrcAlpha One And that gives me additive blending of the sort I want. It works with transparency, and so on. However, when I use a surface shader this line...
View ArticleBest way to do simple per-pixel changes in a shader?
I'm looking for the solution that runs the fastest and that is the most compatible (naturally). It seems like this ought to be easy, but the documentation on Unity shaders seems to be fairly lacking...
View ArticleHow to use a non-screen-sized RenderTexture?
It is obviously quite trivial to _create_ a non-screen-sized RenderTexture in unity pro. However, the problem that I have is that when I render to it using either Graphics.DrawTexture or...
View ArticleHow do you find out what scripts are making your compile time slow?
If your scripts are still slow even after compiling separately via asmdef files, then the problem is with the domain reload, per here:...
View Article