Beispiel #1
0
 override protected void Awake()
 {
     base.Awake();
     App.Switchboard.CameraPathModeChanged += OnCameraPathModeChanged;
     m_PreviewSegment = CameraPath.CreateSegment(null);
     m_PreviewSegment.renderer.material.color = Color.white;
     m_Mode = Mode.AddPositionKnot;
     RefreshMeshVisibility();
 }
 public void TintSegment(KnotSegment segment) {
   segment.renderer.material.color = Color.white;
   m_TintedSegments.Add(segment);
   enabled = true;
 }