10-07-2024, 12:22 PM
Hi I'm working on a game which uses a series of extruded volumes to form a course. I want to know where the player is along the whole course so I am adding a reference to each volume as a `CGDataReference` with the attribute `[CGDataReferenceSelector(typeof(CGVolume))]`. I want to get the actual `CGVolume` object from these so that I can get the `Length` property from each one. I am trying to do `var volume = dataRef.GetData<CGVolume>()` but this comes back null. How can I get the actual volume data in my Monobehaviour?