How to Make Unity Cheat Codes? And Why?

  Рет қаралды 9,059

One Wheel Studio

One Wheel Studio

Күн бұрын

Пікірлер: 21
@theoriginaljosh4515
@theoriginaljosh4515 4 жыл бұрын
How does this not have more likes and views, its the best video to show you how to implement cheats into your game yet, all the others are from like 4 years ago, still using javascript
@OneWheelStudio
@OneWheelStudio 4 жыл бұрын
Spread the word! ;) Thanks for the kind words!
@akioasakura3624
@akioasakura3624 10 ай бұрын
Woohoo. Why only 8k views!? Thank u for uploading sir ur a pro 🙏🙏🔥🔥
@erz3030
@erz3030 4 жыл бұрын
Thanks for sharing this :) Keep up the excellent tutorials!
@ozgurgurbuz
@ozgurgurbuz 4 жыл бұрын
You saved a big amount of my time. Thank you sir!
@justphitness1659
@justphitness1659 4 жыл бұрын
Would love to see a MOBA tutorial using Bolt. Followed your top down and a few others videos but now I’m lost.
@OneWheelStudio
@OneWheelStudio 4 жыл бұрын
A MOBA is a pretty huge project! Your not the first to request it. I’m not sure how realistic it would be for me to attempt.
@DonutDev
@DonutDev 4 жыл бұрын
hey what about implementing thid in game aswell. like pressing "enter" lets say and a place where you can write the code. this was a great tutorial anyway :D
@OneWheelStudio
@OneWheelStudio 4 жыл бұрын
Definitely do able. Just use an input field. Then rather than loop through “input.inputstring” loop through the text of the input field. There may be another hitch or snag but the general idea should be good.
@blue_lobster_
@blue_lobster_ 4 жыл бұрын
Thanks mate
@elite_ramsay1667
@elite_ramsay1667 2 жыл бұрын
Has anyone been able to apply this to a form of gui of like a console?
@MKVProcrastinator
@MKVProcrastinator 3 жыл бұрын
I suppose this wouldn't work for the Konami code, would it?
@OneWheelStudio
@OneWheelStudio 3 жыл бұрын
Yeah not so much. That would need more of a "combo" tool to read and remember the inputs. A bit more complicated, but maybe not too bad.
@ElliotPixel
@ElliotPixel 2 жыл бұрын
If you're using an InputField and the new input system, it's also possible with only 63 lines of code. using System.Collections.Generic; using UnityEngine; // KZbin removes the comment if it contains a link, so replace "DOT" with ".". using UnityEngineDOTEvents; using UnityEngine.InputSystem; using TMPro; using UnityEngine.EventSystems; public class CheatCodeManager : MonoBehaviour { [SerializeField, Tooltip("The cheat code input field.")] TMP_InputField inputField; string previousText; TMP_Text placeholder; [SerializeField] List cheatCodeList = new(); void Awake() { // Gets the placeholder's TextMeshPro component. placeholder = inputField.transform.GetChild(0).GetChild(0).GetComponent(); previousText = placeholder.text; } bool IsSelected() { return EventSystem.current.currentSelectedGameObject == inputField.gameObject; } void Update() { if (Keyboard.current.enterKey.wasPressedThisFrame) { // If enter is pressed and the input field is selected, do this. if (IsSelected()) { CheckCheat(inputField.text); inputField.text = ""; } } } bool CheckCheat(string _input) { foreach (CheatCodeInstance code in cheatCodeList) { if (_input == code.code) { code.cheatEvent?.Invoke(); placeholder.text = previousText; return true; } } placeholder.text = "Invalid code."; return false; } } [System.Serializable] public class CheatCodeInstance { public string code; public UnityEvent cheatEvent; }
@tmoneygamestudio
@tmoneygamestudio 2 жыл бұрын
It's might just be a coincidence, but your voice sounds like the same one Odin Inspector videos uses with their videos.
@OneWheelStudio
@OneWheelStudio 2 жыл бұрын
Definitely not a coincidence 😉 I’ve been making their videos for a couple years now.
@JustBitsAndPieces
@JustBitsAndPieces 4 жыл бұрын
i like this
@cr4zy326
@cr4zy326 3 жыл бұрын
88th like
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 756 М.
Creating a Cheat Console in Unity
9:46
Game Dev Guide
Рет қаралды 87 М.
When Rosé has a fake Fun Bot music box 😁
00:23
BigSchool
Рет қаралды 6 МЛН
Sigma Kid Mistake #funny #sigma
00:17
CRAZY GREAPA
Рет қаралды 28 МЛН
Правильный подход к детям
00:18
Beatrise
Рет қаралды 10 МЛН
Unity Coroutines - What? Why? How?
11:03
One Wheel Studio
Рет қаралды 46 М.
3 Ways to Find Targets in Unity! (Collider, Physics, Distance)
15:41
Unity async / await: Coroutine's Hot Sister [C# & Unity]
16:18
How to make a Dialogue System in Unity
16:19
Brackeys
Рет қаралды 938 М.
Fast & Efficient Spawning with Object Pooling - Unity and C#
11:23
One Wheel Studio
Рет қаралды 24 М.
Generics in C# and Unity - Do More with Less Code
12:40
One Wheel Studio
Рет қаралды 13 М.
TOUCH CONTROLS in Unity!
16:09
Brackeys
Рет қаралды 1,3 МЛН
How to Build A Save System in Unity
9:41
Game Dev Guide
Рет қаралды 173 М.
Creating Rope Objects with Physics | Unity Tutorial
10:36
Sasquatch B Studios
Рет қаралды 29 М.
When Rosé has a fake Fun Bot music box 😁
00:23
BigSchool
Рет қаралды 6 МЛН