Quantcast
Channel: Answers for "How to expose script properties in C# ?"
Browsing latest articles
Browse All 6 View Live

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 Article



Answer 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 Article

Answer 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
Browsing latest articles
Browse All 6 View Live




Latest Images