Quantcast
Channel: Latest Questions by GraviterX
Browsing latest articles
Browse All 122 View Live

Door and Key (ctu)

Hey all! I recently posted a question regarding my script (below). I'm trying to enable and disable scripts from the code. I'm not very good at it and have been looking at documents trying to figure it...

View Article



Script Problem

What's wrong with this script? It's supposed to enable/disable separate scripts on separate gameobjects. It's not working, and I'm getting this error: NullReferenceException: Object reference not set...

View Article

Script Problem 2

So I fixed the error in my last line of code, but now I have another problem. This script is supposed to allow the Player to collect a key. Then, the Player is supposed to enter a trigger and click to...

View Article

Scene File Deleted

Hey all. I recently went to open a scene file places in a scene folder in my assets folder and I discovered the scene file gone. I have no idea what happened to it for where it could've gone. I know...

View Article

Adding Symbols

Hey all. I have this script to slowly add money in a GUI counter. However, there is just the number displaying. I want it so it displays a $ before the amount of money. How can I do this? function...

View Article


Unity Asset Store Purchase Email

Hey guys. I recently purchased the package "Photon PUN+" from the Unity Asset Store. I got the confirmation email for the purchase. However, I accidentally deleted it. It turns out some information on...

View Article

Random Teleportation

Hey guys. In the game I'm making, I want to have it so that the enemy (an empty gameobject for now) teleports randomly from room to room (gameobjects) around it. I've tried to find tutorials or script...

View Article

Random Seconds

Hey guys. I have this script where my Player moves to certain points. I'm trying to make it so the Player moves there at certain seconds, decided by predetermined seconds in a int group. However, I...

View Article


Minimap Help

Hey all. I'm trying to make a minimap in my game that can be viewed by the player on a tablet device (like FNaF). I want it to display a map of a house in which the enemy can be seen and a dot in a...

View Article


Enable/Disable Scripts

Hey guys. I know this question has been asked a billion times, but I can't seem to find the info I need. I'm trying to make a script where when the Player clicks a flashlight, the flashlight activates...

View Article

Unknown Error

I loaded up Unity as usual but when it opened, all of my assets were gone and there were a ton of errors in the console saying "assets were found in timestamp but not in assetdatabase" Can someone tell...

View Article

Light Glitch

Hey guys. I'm having a problem with a light in my game. The flashlight component attached to my Player is glitching when pointing at the terrain, as you can see. However, it's just when looking to the...

View Article

Enable/Disable Child Script

Hey guys. I've been working on a script that makes it so that when the player presses the space bar, it disables/enables the simple mouse rotator component attached to the player and the main camera...

View Article


IOS App License

Hey guys, I have a simple question. So I have an app that I want to transfer on to ONLY my IOS device, not the app store. Do I still need the publisher license from Unity and Apple?

View Article

Animator Scripting

Hey guys. I've been trying to learn to make a basic movement script with the animator. I'm new to this, and not sure how it works yet. Hopefully someone can help. In this script, I want certain states...

View Article


Disabled Script Enables Itself

Hey guys. The script below is something I made real quick. I disabled the script in the inspector, and made it so it turns itself on when an OnMouseDown function is executed. Basically what I want is...

View Article

Door Script

Hey guys. I have this door script that is supposed to switch between 2 booleans in order to allow the player to open and close the door. Once the door is opened, it switches the openable boolean to the...

View Article


Toggle Active GameObject State

Hey guys. I'm trying to work on a script for a sink that allows the player to toggle a prefab that is a child of the sink object (the water) I'm trying to make it so that when the player clicks the...

View Article

Parsing Error

Hey guys. I'm getting this error in my script: MouseLookScript.cs(93,1): error CS8025: Parsing error I'm not sure how to fix it because I'm not that good at C#. Any help? The script: using UnityEngine;...

View Article

Loadout Revert to Factory Settings Hierarchy Deletion

Hey guys. I have a huge problem. I went to open my project tonight and there was a message displayed that said something about the layout couldn't be displayed and it made me revert to the factory...

View Article

Instantiating a text field

Hey guys. So I'm making a program that allows a user to communicate with an AI. I'm able to have the user type and hit enter to send the text, but I want there to be a blank GUI text field and when the...

View Article


Creating GUI inside an if statement

Hey guys. I'm having a problem with this Javascript. I want to have this line { (GUI.Box (Rect (10,10,100,90), stringToEdit); } that creates a GUI box inside of an if statement to create it when...

View Article


KeyCode.Enter

Hey guys. I've been having trouble figuring out how to make an if statement that detects when the "enter" key is pressed. I wrote this simple script but it won't work. Any help? function Update() {...

View Article

Check GUI Text Field

So I have this script where the Player can type text, hit enter, and an AI responds to it depending what the text is. However, the if statement that's supposed to check if the text is a greeting isn't...

View Article

Checking grammar in strings

So I have a script where the user can type certain things in a text box and press enter to trigger the system to say something back, like an AI. The problem is, I have to type every possible thing a...

View Article


Checking certain words in a string

So I have a script that lets the user type a string and hit enter, only to have the machine reply. However, I want to make it so that if the user asks for a certain day, color, etc in the string, it...

View Article

Changing Footstep Sounds On Different Surfaces

Hey guys. So I just made up this simple script that is going to tell when the player is walking on different floors to be able to change the footstep noise. However, I'm not entirely sure how to change...

View Article

Searching for certain string

Hey all. I have no idea how to do this, but basically what I'm trying to do is detect a certain string in a sentence without knowing that string. What I'm trying to do is allow a user to enter in their...

View Article

Collider floating above ground

I've been having a problem with the First Person Character script that comes with the Standard Assets. When I reduce the "Gravity Multiplier" setting to less than 5, the player seems to float above the...

View Article



Door and Key

Hey all. I just wrote this script for a key in my game as sort of a key-door mechanic. I want the Player to be able to pickup the key and have another script (attached to the door) activate. However,...

View Article
Browsing latest articles
Browse All 122 View Live




Latest Images