using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class planeFitting : MonoBehaviour
{
public List<Transform> _tranList;
}
In the inspector you’ll have a field that can be expanded, within in which you can specify how many transforms you want to add, then drag transforms into the list.
That’s awesome! I started with javascript first, but dove into C# yesterday. Inheritance/typing make sit way better ( I think).
I tried you approach in Javascript but that failed (but I might have done something wrong there), in C it works fine!
Got to say that the responses on this forum are awesome, hope to contribute soon!
The number of elements is editable in the inspector, although it can’t be resized at runtime. If you want to use a dynamic list, Noisecrime’s code in JS is: