Uriel Cain Posted November 29, 2025 Report Posted November 29, 2025 Simple question, is there no way to directly store an int[] in a TreeAttribute programmatically? I know there are workarounds, but if I can just directly store them as such, it'd be preferred. I know the game itself does it, but I can't find any functionality in the API that would let me do it.
The Insanity God Posted November 29, 2025 Report Posted November 29, 2025 The game uses `IntArrayAttribute` for this, would look like this: ITreeAttribute treeAttribute = new TreeAttribute(); int[] myIntArray = [1, 2, 3, 4]; treeAttribute["myIntArray"] = new IntArrayAttribute(myIntArray);
Uriel Cain Posted November 30, 2025 Author Report Posted November 30, 2025 Omg, thank you! I don't know why I couldn't find that.
Recommended Posts