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 ArticleUnknown 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 ArticleLight 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 ArticleEnable/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 ArticleIOS 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 ArticleAnimator 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 ArticleDisabled 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 ArticleDoor 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 ArticleToggle 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 ArticleParsing 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 ArticleLoadout 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 ArticleInstantiating 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 ArticleCreating 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 ArticleKeyCode.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 ArticleCheck 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 ArticleChecking 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 ArticleChecking 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 ArticleChanging 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 ArticleDim 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 ArticleSearching 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