Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Duplicate Volume references become null
#1
Hi

I'm creating a game which uses a series of extruded volumes for a ski slope. I've just duplicated one of these courses in order to make a modified version but I'm getting now a lot of errors about null references. I'm referencing the course sections with the following code:

Code:
[CGDataReferenceSelector(typeof(CGVolume), Label = "Volume/Path_1"), SerializeField]
public CGDataReference Path_1 = new CGDataReference();

In the editor the references appear to be there and pointing to the right game objects but when I run the game I get a lot of errors and in the debugger the underlying "slot" for the reference is null. I don't really know how these are serialized except that they are using some non-standard magic so I'm guessing that duplicating the old curves has left some bad data in the serialized object. Does anyone know if it's possible to fix this, or if there is a method for duplicating curves which will keep references like this intact?


Attached Files Thumbnail(s)
   
Reply


Messages In This Thread
Duplicate Volume references become null - by joebain - 11-12-2024, 05:17 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Best way to duplicate a spline with an offset Kapistijn 8 1,300 04-12-2026, 03:18 PM
Last Post: _Aka_
  Replace deform mesh on volume spots Kokoriko49 1 2,311 06-09-2025, 06:49 PM
Last Post: _Aka_
  Null Reference Exception rickgplus 1 1,434 03-01-2025, 02:09 PM
Last Post: _Aka_
  OnAfterControlPointAdded - Control Point is null jh092 5 3,152 02-04-2025, 09:31 PM
Last Post: _Aka_

Forum Jump: