Skip to content
Y
yTube.SITE v8.0.4
media / worlds / tools / internet oddities
YouTube / video information

How to Toggle Between Two Items in Unity

Video information, playback and saved actions.

How to Toggle Between Two Items in Unity

Description: Pretty basic way to switch between two items in unity! Code used in video:

var item1 : GameObject;
var item2 : GameObject;


function Start () {
item1.active = true;
item2.active = false;
}

function Update () {
if (Input.GetKeyDown(Key ... Close description
      
Videos related to "How to Toggle Between Two Items in Unity"