• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by oc007061 · Feb 08, 2014 at 05:01 AM · cheat

making a cheat console?

would it be possible with GUILayout? i'm talking a cheat console like the one in TES V: Skyrim. Possible? I know how to freeze time in the background, but i'm curious on if it's possible to make a cheat console. maybe GUILayer? i have no idea please tell me if it is and please give some examples of code, too!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

3 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by getyour411 · Feb 08, 2014 at 05:03 AM

Start by making something the player can type into

https://docs.unity3d.com/Documentation/ScriptReference/GUI.TextField.html

once you get that working, just take the input and match it to one your 'cheat codes'. If you have something besides a design in mind, post code/specific question.

Comment
Add comment · Show 6 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image oc007061 · Feb 08, 2014 at 05:16 AM 0
Share

cool! i set the text field up like in the example

 using UnityEngine;
 using System.Collections;
 
 public class Example : $$anonymous$$onoBehaviour {
     public string stringToEdit = "Hello World";
     void OnGUI() {
         stringToEdit = GUI.TextField(new Rect(10, 10, 200, 20), stringToEdit, 25);
     }
 }

but nothing happens when i type into the text field in-game... :(

avatar image getyour411 · Feb 08, 2014 at 05:20 AM 0
Share

Try setting stringToEdit = "" and type into box

avatar image oc007061 · Feb 08, 2014 at 05:23 AM 0
Share

ahh yes yes forgot to mention tried to do that already nothing happened :( makes me sad

avatar image getyour411 · Feb 08, 2014 at 05:29 AM 0
Share

You are clicking your mouse into the box? I tested a scene I have setup to accept user input using this

 GUI.Label (new Rect(10,330, 500,35), "Name?");
     pcName = GUI.TextField (new Rect (15, 355, 50, 35), pcName);

and it works fine

avatar image oc007061 · Feb 08, 2014 at 05:31 AM 0
Share

yeah i'm clicking the mouse in the box. i'll try your code now, though.

Show more comments
avatar image
0

Answer by Nirav-Madhani · May 21, 2016 at 06:59 AM

Please Check

Cheat Code And Trainer Toolkit

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by $$anonymous$$ · Nov 08, 2018 at 11:43 PM

Sorry for resurrecting an old thread but it still shows up on the Google front page so people mind find this useful to know:

I would recommend our new Developer Console asset for this: https://assetstore.unity.com/packages/tools/gui/developer-console-132608

It also allows you to turn any public, non-public, static or non-static method into a console command which you can invoke at runtime by simply typing it's name. This also works with parameters and allows you to specify a gameobject as the target.

It also allows you to view all debug messages in builds, including stacktraces and timestamps, and allows you to collapse duplicates much like Unity's console. It also allows you to specify a custom file to save all debug messages to in an easy to read format.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

19 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

A node in a childnode? 1 Answer

Unity 3D download as ZIP 0 Answers

Before I get sued ... 3 Answers

How do i get the player to do a delay jump when it collides with a object? 2 Answers

Is it possible to track more then a body with zigfu package in unity with kinect and create an avatar for every person tracked? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges