This code in any MonoBehaviour script doesn't cause 'asd' to store transform fields:
var asd = transform.GetType().GetFields(BindingFlags.NonPublic | BindingFlags.Instance | BindingFlags.Public);
This on any other type created by me would cause 'asd' to store array of private and public properties of that type.
Hence, what is the difference of my new type and Transform?
Are there some BindingFlags that i should add?
Aucun commentaire:
Enregistrer un commentaire