Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Get CGVolume from CGDataReference
#1
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?
Reply


Messages In This Thread
Get CGVolume from CGDataReference - by joebain - 10-07-2024, 12:22 PM
RE: Get CGVolume from CGDataReference - by _Aka_ - 10-07-2024, 07:43 PM
RE: Get CGVolume from CGDataReference - by _Aka_ - 10-08-2024, 04:06 PM

Forum Jump: