Hi. Do you know how to deal with it? I tried to import .NET nuget AStarLite and as input it receive an array of two-dimensional byte array, but how to provide this in VL?
hi yar, you can set a reference to mscorelib.dll (Add .NET Framework Assembly) and use the native operations of System.Array like this:
in the end use a CastAs to cast to the two dimensional array type. didn’t test it, hope it works…
@tonfilm Thanks! It seems to be working fine. I’ll try to dig deeper.
What is .NET Framework Assebmly and what I did add to VL? Why so many new nodes?
And another question: how to create two-dimensional byte array filled with specific values? And how to handle this array as in “for each” region?
the .NET framework is the software runtime we use to run VL. it is created by micorsoft and has a huge library. mscorelib.dll is the core library of the .NET framework with all basic functionality to build more complex software. basically what VL.CoreLib is for VL.
since VL can use any .NET library as node you just added all things defined in mscorelib.dll to your vl document:
https://referencesource.microsoft.com/#mscorlib,namespaces
you would basically make two Repeat regions with the same iteration counts as the array dimensions and then have a logic to set the individual values by the given index of the Repeat region.
that’s why i put the SetValue with Index 1 and Index 2 there, as an example to set the first value of the 2d array to a byte with value 0.
does that make sense to you?
@tonfilm thanks again!
It is very useful and explains a lot.
pretty cool! thanks for the video.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.