Is there a way to scale a 3d Game Object to a specific pixel width and height regardless of what resolution is set?
I'm using the alpha cut-off health bar method as seen in this thread and need to be able to set absolute scale for the objects being used as the meters. No matter what I try I can't get them to scale correctly.
I'm using an orthographic camera for them if that helps any.
asked Jun 15 '10 at 01:20 AM
What do you need to draw? For 3d geometry (ie Meshes), you typically don't wont to set the size in pixels. But if you do, you can always divide the scale by some factor of Screen.width and Screen.height.
For 2d GUI stuff, you can use a GUITexture (set pixel size using the pixelInset Rect) or GUIText (set pixelCorrect flag).
answered Jun 16 '10 at 01:38 PM
jonas echterhoff ♦♦
What about using a GUITexture? I think they can use materials, might be wrong here though.
answered Dec 02 '10 at 07:00 AM