A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
bool allowButtonPress = false; private void OnTriggerStay(Collider collider) { allowButtonPress = true; if (collider.gameObject.tag ==...
I would use a class for this task. Simply add the class below to each door gameobject: using UnityEngine; //Assign this script to a "Door" Object...
Possibly your PlayerPrefs "LastChestOpen" holds an old wrong value, so simply write a new correct one (here one time if you start the game):...
Make it more simple like this: using System.Collections; using System.Collections.Generic; using UnityEngine; public class DialogueSystem :...
Here's a really good tutorial (binary and json included): https://www.raywenderlich.com/418-how-to-save-and-load-a-game-in-unity
Here some code that work with coroutines: using System.Collections; using System.Collections.Generic; using UnityEngine; /// <summary> /// Helper...
Sorry here the direction of the comparison was wrong. The value "0.001f" describes the threshold at which distance the vectors be considered the...
1) Normally the token should be returned by the server http response as html or xml entry (soap message). In most services this entry is defined...
The color magenta means that the shader of the line renderer is not working or not set. Try to use another shader for the line renderer, therefore...
One hint: Your usage of the couroutine makes no sense this way. Either you make the scaling in the couroutine or the update method. At the moment...
I assume your classes "HealthButton" and "PlayerDamaged" has no connection to each other and therefore the "playerhealth" is not connected too. So...
But if you want this feeling: "My goal is to have zoom independent movement of the camera around the planet where the feeling is that you grab the...
These things can be very tricky. Perhaps this article helps or can give you some ideas/hints:...
It's just an attempt (because i dont checked your full code), but try to rotate about the local axes of the planet: //Orbit the camera in the X?...
I mean something like this should work: string[] options = new string[materialsDropdownScript.materialsList.length]; int index = 0; foreach...
The only idea i have is to check that disabling the canvas is disabling the GO with your script attached too and therefore the method is not...
Dont use the name Update here for the Spawn method name because this is a special monobehavior method. What the float random means? This code...
Yes give it a try.
Yeah, i havnt tested the code so add float to fadeSpeed is absolutely right. But i assume you should use .material here and not .sharedMaterial...
You can use this. Write a routine and call it as shown in the example: https://docs.unity3d.com/ScriptReference/MonoBehaviour.InvokeRepeating.html...