0

[SOLVED] Access variables from a list in a class

Global Hive 2 years ago updated 2 years ago 1

I know weird title but i dont know how to describe it since im german :D

So... my problem is:
I have a list of Character (Which is a class) this class holds 3 other classes

  1. Stats
  2. Info
  3. Equipment

what means in code i would access one of them like that:

List<Character> CharList = new List<Character>();

void Something()
{
   string name =  CharList[0].Stats.Name;
}


How would i do that in nodes, since i dont want to recreate the whole script, which is around 200 lines of code...

Thats my attempt but... yeah now im stuck



And heres the complete script for a reference

PManager.cs

Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):

Well i got it working :D
Thanks to Reality Stop with his video: 



From there on i clicked trough everything to test te [IncludeInSettings(true)] thing and found it right here



Simply included it, and have now access to everything :D