Alright so I have a .PNG file of the character I want to put in my game. What is the whole process of getting this small little .PNG file onto my character and into my game? Animations and crap can come later, I just want to know how I put this .PNG onto a GameObject.
Step 1, drag the PNG file into your assets folder
Step 2, add a game object to your scene
Step 3, drag the PNG file in the inspector onto your game object
Final step, read the manual ![]()
Doesn’t work? The PNG just flies back to the Hierarchy.
Heh oops, forgot, Asset, Create Material, apply the PNG to the material then apply the material to the mesh, I usually simply just apply the image to the mesh and let it autocreate the material, I guess it depends on what you are up to. shrugs
Alright, so it’s the mesh that I am having troubles with. Do I have to use a 3D animator like Maya or something to create the mesh, or how do I go about doing that?
Well, again, depends, you could make a full game using nothing but prefabs, I have seen a few games on the apple store from Unity where they used nothing but prefabs, so to start out, click on “Game Object” then “Create Other” then “Cube” then drag your PNG on to the cube. If you want more than a cube or what Unity has to offer, then download free Blender or buy Maya or 3D Studio Max, or you could do Modo or even Lightwave, there are quiet a few other programs that work well.
Like Ford Prefect, it is all in the mind, such as the towel, everyone needs a towel… think of the cube as a towel, everyone needs a cube to begin with, up until they make a towel anyway.
nope just create a cube or plane under the gameObject/create/Plane
Also if your character has a alpha channel then you have to use a shader in the transparent class.
Create a Plane and then rotate it so it stands up straight, I am guessing?
Alright so I imported my little PNG into my game and got it all sorted out with the Shaders and whatnot, now I am having trouble with my movement and scripts and stuff like that. I am using the “CharacterController” from the 2D Platformer from the Unity3D site.
Whenever I hit left or right, my Player suddenly starts flying and resets all rotations to 0, so it’s flat against the ground instead of standing up (X = 90, Y = 180). Any help?
Thanks for all the help so far by the way! You guys are amazing ![]()
Any help? All that is happening now is his Rotation is going to 0, 0, 0 so he is flat on the ground. His Rotation should always be 90, 180, 0. Anyway to keep it that?