How to undo maximize view in Unity?

Pressing Shift+Space will maximize the view (for example, the Scene, Game or Inspector View) but in order to go back to the previous layout, I need to press a ⋮ in the top right corner and tick off a Maximize option. Is it possible to do it using a keyboard shortcut? I am using Personal… Read More How to undo maximize view in Unity?

Error when make the objects both MoveLeft and Spinning in Unity

I’m trying to make objects fly to the left while spinning themselves. Here is the MoveLeft script: using System.Collections; using System.Collections.Generic; using UnityEngine; public class MoveLeft : MonoBehaviour { private float moveLeftSpeed = 10; // Start is called before the first frame update void Start() { } // Update is called once per frame void… Read More Error when make the objects both MoveLeft and Spinning in Unity

How to get current sound clip file name in Unity c#?

I have a script that basically plays music from the list. I’m trying to get a name of the current song but in return I get the name + (UnityEngine.AudioClip) Here’s a code I use: currentSong.text = audioSource.clip.ToString(); Is there a way to get rid of (UnityEngine.AudioClip)? Because right now I get: SongName (UnityEngine.AudioClip) Thanks… Read More How to get current sound clip file name in Unity c#?

Cannot serialize object from JSON using Unity's JsonUtilty when the object contains more objects

So I have an API set up that returns a JSON. The response looks as follows: { "success": true, "results": 1, "data": [ { "location": { "type": "Point", "coordinates": [ -83.338322, 42.705647 ], "formattedAddress": "Some adress", "city": "SomeCity", "state": "STATE", "zipcode": "000000", "country": "US" }, "_id": "630ce2c5a963f97ddae7387f", "title": "Node Developer", "description": "Must be a full-stack… Read More Cannot serialize object from JSON using Unity's JsonUtilty when the object contains more objects

I want to make an object fall every 3 seconds, but this does not seem to work. C# Unity

using System.Collections; using System.Collections.Generic; using UnityEngine; public class FallingObject : MonoBehaviour { // Variables float timer = 0; MeshRenderer renderer; Rigidbody rigidbody; // Start is called before the first frame update void Start() { // Cached References renderer = GetComponent<MeshRenderer>(); rigidbody = GetComponent<Rigidbody>(); rigidbody.useGravity = false; } // Update is called once per frame void… Read More I want to make an object fall every 3 seconds, but this does not seem to work. C# Unity