Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom Editor

I'm currently making an editor to build a kind of track (instantiating prefabs with a set of connected points from a spline).
Everything works fine, but when i change of scene and come back to the one containing my objects, all connections between splines are lost.

I use : 

firstPoint.gameObject.GetComponent<CurvySplineSegment>().ConnectTo(lastPoint.gameObject.GetComponent<CurvySplineSegment>(), CurvyConnection.HeadingMode.Sharp, CurvyConnection.SyncMode.SyncPosAndRot);

any clues ?

I think i found, but could you confirm it's the rught way to do : 


Sounds good. Connections are stored within segments, so you need to make the editor aware something changes, just like you did.

Possibly Related Threads…
Thread Author Replies Views Last Post
  Permission to publish custom CGModule source code? Apelsin 6 9,416 09-15-2022, 08:53 PM
Last Post: Josaf Tom
  Generator window causes my editor to lag every couple seconds niuage 1 3 03-28-2022, 11:05 AM
Last Post: _Aka_
  Unable to create custom deform mesh bit9labs 1 10 03-09-2022, 10:04 AM
Last Post: _Aka_
Brick Extending Curvy to make a Hallway editor. JacobSL 3 386 10-13-2021, 05:09 PM
Last Post: _Aka_

Forum Jump: