with the following code, I can access an object with a colliding raycast, get a single string and add it to a textbox.
Object A
var test = _raycast.GetCollider().Get("testString");
_richTextLabel.Text = test.ToString();
Object B
[Export]
public string testString;
[Export]
public String[] stringArray = new String[5];
testString = "anything"
Unfortunatly, replacing "testString" by "stringArray" only seem to return a string called "System.String[]" (which I'm not able to parse to a textbox).
What I'm trying to do is to replace "testString" by an array ("stringArray" in the above example) that would be set in the inspector of object B.
How can I get that "stringArray" from object B with a raycast and store the strings contained to a variable in object A?
Thank you for your time.