Quantcast
Channel: Latest Questions by GraviterX
Browsing index pages (122 articles)

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


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


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

Dim Lighting Problem

Hey guys. I've been having an issue with the lighting in my game. The first picture is a screenshot of a light from a house scene. The light has a decent range with a brightness intensity of 8, so the...

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


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

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

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


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


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

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

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

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


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

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


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

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


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

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

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
Browsing index pages (122 articles)


Latest Images