Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

trigger wont work on build

$
0
0
My trigger cube turns off all info cards and then turns one back on, works fine when I play from editor, fails to work (throws no bug, just doesn't work) in my build- any ideas why? the script is as follows; using UnityEngine; using UnityEngine.UI; using System.Collections; public class triggerCardFromProduct: MonoBehaviour{ public GameObject theInfoCard; private GameObject[] turnOffCards; void OnTriggerEnter(Collider other){ turnOffCards = GameObject.FindGameObjectsWithTag ("infoCard"); { for (int i=0;i

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>