Unity for Noobs Create a Map and Triggers in URP
1,348
Published 2021-10-08
Continuation of the Unity for Noobs series that I started when I was new myself.
Comment or @corriedotdev if there is anything I can help with. Below are resource files referenced in this tutorial.
Unity: unity3d.com/beta/2021.2b
Skyboxes: wwwtyro.github.io/space-3d/
Terrain Textures: texturelib.com/
All Comments (6)
-
Thanks a lot mate
-
this is great :)
-
sorry but how does your camera move in the game screen ?
-
how did you cycle to rotation, postion, size things for the cube bit
-
also is this wrong? using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; public class TriggerCube : MonoBehaviour { public UnityEvent _physics; public Rigidbody[] _cubes; public void OnTriggerEnter(Collider other) { for(int i = 0; i < _cubes.length; i++) { _cubes[i].isKinematic = false; } Debug.log("Trigger Hit"); //_physics.Invoke(); } } cause I'm getting these issues Assets\TriggerCube.cs(16,35): error CS1061: 'Rigidbody[]' does not contain a definition for 'length' and no accessible extension method 'length' accepting a first argument of type 'Rigidbody[]' could be found (are you missing a using directive or an assembly reference?) and Assets\TriggerCube.cs(19,9): error CS0104: 'Debug' is an ambiguous reference between 'UnityEngine.Debug' and 'System.Diagnostics.Debug'