I have the very specific problem that I need to take an image, and then,
quickly create a flat mesh, two tris, and put the image on it and sized to it.
So that's a two-tri mesh, sized to the actual image portion and spun correctly, etc.
If anyone knows of a tool that does this, thanks!!
This is NOT for use in the GUI layer nor on a 2.5D stage solution. It is for use in a normal 3D scene.
Actually it sounds like there is NOT such a tool in the asset store -- which probably makes sense as it seems like a pretty specific use case.
Just FTR there is NOT such a tool in the asset store -- which probably makes sense as it seems like a pretty specific use case.
Simply use 2DTooljit (or any competitor) and make just the one item. There's no "lighter solution" around.
answered Jun 23 '12 at 09:33 PM
I just read your comments and even after your long phrased question you still haven't mentioned any auto-alignment or auto-fitting. If you need something like that why don't use use one of those packages like the spritemanager? People usually invent toolkits or tools to be used in many situations. Most the time you need more than one sprite. You said the plane that comes with Unity is bad (due to 121 verts and 200 tris so you want a 2 tris mesh). If you worry about the tris why don't you use the spritemanager then? For example 4 such sprites with seperate renderers will produce 4 drawcalls. The tris isn't that important. It's the fact that each of them need a renderer. That's why those toolkits pack all sprites into one mesh so it just needs one drawcall.
If you really need exactly one of these sprites, you can just use the plane mesh in Unity, import a 2 tris mesh from your favourite model app or create it procedural.
If you attach the following script to an empty gameobject it will create a 1x1 mesh along the x-y plane, so it's facing toward positive z (forward) axis.
To rotate an object towards another object (if noone is given it will choose the main camera), just attach this script:
Now you have a 2 tris quad mesh which will automatically rotate itself towards the camera or towards any given object.
answered May 05 '12 at 01:19 PM
Just use a GUITexture?
answered May 04 '12 at 09:06 AM
What do you mean, turn one image into a sprite?
A sprite IS an image...if you want it animated you have multiple versions of the same object on the sprite(sheet), but it is still just an image. There is no difference between a texture and a sprite.
answered May 03 '12 at 06:17 PM