↧
Answer by Ashkan_gc
everything is derived from System.Object so there is no problem outthere. MonoBehaviours are derived from System.Object too.yes a Behaviour is a script that can be attached to a gameObject and become...
View ArticleAnswer by Nicolaj Schweitz
Hi,Not 100% sure I understand your question, but [SerializeField] seems to be what you're looking for:using UnityEngine; using System.Collections; public class NewScript : MonoBehaviour {...
View ArticleAnswer by Meltdown
Simply make your variables public like so...using UnityEngine; using System.Collections; public class NewScript : MonoBehaviour { public GameObject myGameObject; } On your script in the inspector then...
View Article