Quantcast
Viewing latest article 2
Browse Latest Browse All 6

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 {

[SerializeField]
private NewScript myNewScript = new NewScript();
}

Viewing latest article 2
Browse Latest Browse All 6

Trending Articles



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