I need a bit of help understanding how to use the array helper. I want to create a list of 9 abilities much the same as in the attack settings, where you can select an ability, and an ability level.
what is the correct format?
public Ability[] abilityField = ArrayHelper.CreateArray(9,Ability);
public Ability[] abilityField = ArrayHelper.CreateArray<Ability>(9);
Post edited by gamingislove on
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
The correct syntax in that case would be:
public Ability[] abilityField = ArrayHelper.CreateArray<Ability>(9);
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!