A first-person player controller for Unity, built with being user-friendly and developer friendly in mind.
Gold Player aims to be an easy to use first person player controller for your Unity games. Its goal is to work with as many first-person games as possible without the need to modify much code if any. So be it if it’s a horror game, puzzle game or first-person shooter; it should just work!
I feel like the standard controllers provided by Unity is REALLY bad, like seriously bad. So I once set out to create a player controller that I could use in multiple projects without the need of editing the code for it. It worked fine at first but it was full of bad practices and bugs. So I used my new knowledge to create a new one and it went really good. It even got used in a game I published! But I once started a major refactor and I never finished it and I left it in a weird place. Half good, half really bad. And since that, my coding style has evolved even more. So I wanted to make “the ultimate controller” with all the knowledge I already have and fix stupid problems from the get-go.
How do I get started?
If you want to use it in a game:
Go to Releases and get the latest release in the form of a Unity package. This will make sure you get a version that should work just fine without any problems. The player should work fine to at least Unity 2017.1. (Notice! If you want to use the provided UI component you NEED to use TextMesh Pro in 2018.1 and up and normal text in 2017.3 and down)
However, if you want to get the latest version (that might not work as intended!) you have to download the entire repository and extract the needed files from it. NOTICE THAT THE PROJECT REQUIRES AT LEAST UNITY VERSION 2018.1!
If you want to contribute:
Fork the project and start making your changes. Commit them in your own repository and then submit a pull request on this page. Keep in mind that if you want to contribute you should follow the coding style present in the other files. NOTICE THAT THE PROJECT REQUIRES AT LEAST UNITY VERSION 2018.1!
What do I get?
When you use this player controller you will get the following:
- A solid player controller
- Running and crouching
- Head bob
- Audio for footsteps, jumping, and landing
- Moving platforms support
- Easy to use functions
- Extendable classes
- Documented code
- Interaction component
- Easy to use UI component
What can I expect later?
I have several things I want to do with this player controller. Here are some thing I would like to do.
- Extra components (stuff that could help you make your game and hooks into the player)
- Intergrate the new Unity Input System (when it becomes more stable).
- More easy to use API
Those are just some things I can think of right now. I will, of course, add more stuff as time goes on!
Q: Why the name ‘Gold Player’?
A: I’m a big fan of the player controller is GoldSrc engine and I want to make a player controller that feels just as good, so I went with “Gold Player”.
Q: Why open source?
A: I had my other two player controllers closed source, but I treated them as open source with documentation and such, so I thought it would be fun to make it open source and it could help someone looking for a solid player controller!
Q: Can I use this for my project?
A: Yes! No restrictions! You can do whatever you want with it. The only thing you can’t do is directly reselling my player controller.
Screenshots and testing
The available editors. You can also try out a web version of the player controller here. You can tweak almost all the settings at runtime.