I am facing problems upgrading from version 4 to version 5. Apparently, RichSpecial
and NodeLink2
have changed quite a bit and the changes broke my link handling at various places. NodeLink2
no longer has a startNode
and endNode
, these seem to be gone completely and without replacement. The nodeLink
field of RichSpecial
is no longer a NodeLink2
, but an OffMeshLinkTracer
. This leads me to my questions:
- Why exactly are
startNodes
andendNodes
arrays, what has changed here? Would I be safe to assume thatstartNodes[0]
andendNodes[0]
are what I am looking for (probably assuming that I have only one graph? Are the arrays guaranteed to be non-null and of length at least one? - Are the
first
andsecond
fake transforms inOffMeshLinkTracer
equivalent to theStartTransform
andEndTransform
of the correspondingNodeLink2
(that I can no longer access viaRichSpecial
)? - For proper handling, I need to check for components on the game object that has the
NodeLink2
component. Is thegameObject
linked byOffMeshLinkConcrete
that one? - If I translate a
GraphNode
to aNodeLink2
, how do I get access to thestartNode
andendNode
now? I do need the nodes, not just the transforms. Is there any way to get the correspondingOffMeshLinkConcrete
via the `OffMeshLinkSource?
The upgrade guide should probably mentioned these changes, too. Thanks!