Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Debug message when moving over CP not working.
#1
Hi,

I'm looking for a little guidance with an issue I'm having.

I've created a based spline and would like a debug message displayed when my GameObject moves over each CP.

I've put together the following script and applied it to a Game Object. Unfortunately, it doesn't seem to be working. Any ideas?


Code:
using FluffyUnderware.Curvy;
using FluffyUnderware.Curvy.Controllers;
using UnityEngine;

public class CheckPoint : MonoBehaviour
   {

       public void OnCPReachedHandler(CurvySplineMoveEventArgs e)
       {
           // what CP have we moved over?
           Debug.Log(e.ControlPoint);
       }
   }
Reply


Messages In This Thread
Debug message when moving over CP not working. - by funkd - 07-08-2019, 12:54 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Bug Issues when working with in-place prefabs Sacryn 4 6 02-27-2024, 04:08 PM
Last Post: _Aka_
  Moving object down or up the spline using gravity velikizlivuk 6 16 07-26-2023, 10:06 PM
Last Post: _Aka_
  how to make fast moving controller go all the way to linear points?(curvy8) hawken 7 12 06-06-2023, 09:47 AM
Last Post: _Aka_
Photo Position in Input Spots not working on all directions. Mike Danielsson 2 10 09-03-2022, 02:22 PM
Last Post: Mike Danielsson

Forum Jump: