How to put a 2D character into a 3D game?

Hello! I’m trying to make a game which looks like “Don’t starve” in terms of camera angle and I am sure the character who you use to play isn’t a 3D model, so can someone please tell me how the creators may have made it?

There’s more than one way. One way is to use a regular 3D character controller, but use a camera-facing billboard for the graphics.

1 Like

Thank you for the help, but I am a complete beginner so can you please give a brief explanation of how to do it?

This manual page explains what a character controller is:

Additionally, if you download Unity’s Standard Assets Package from the Asset Store, it includes a 3rd-person character already set-up with a CharacterController so you can see how it works.

A camera-facing billboard is just a quad with a script on it that makes it face the camera. Here’s an example. It’s old but it should still work:
http://wiki.unity3d.com/index.php?title=CameraFacingBillboard

Take the third-person character example from the standard assets and disable the any mesh renderers on it. Then create a quad object and make that quad a child of the character controller object. Put that camera-facing billboard script on the quad object.

After that you need to make a material to put your character graphics on. Assign that material to the quad object. Also scale that object so that your character is roughly the same size as the parent object’s character controller.

1 Like

So what it will actually be is I will have an invisible 3D character and in front of the character there will be that quad object which will be my 2D character?

Yep, that’s exactly it, except I would put the 2D quad more in the center of your invisible character, rather than the front.

1 Like

Yeah, of course so it’s more accurate. Ok thank you man! You were very helpful! You could be waiting for my game on Steam after some time! ; ) Cheers!