How To: Use the Spline Component in UE4 (C++)

แชร์
ฝัง

ความคิดเห็น • 11

  • @Plooshie987
    @Plooshie987 4 ปีที่แล้ว +2

    Thx for the help missy! ^^

  • @madara6060
    @madara6060 3 ปีที่แล้ว +2

    Hi. Amazing video! Thank you.
    Quick questions,
    1. When I added spline point manually using C++ as follows
    const FVector position1(0, 0, 0);
    SplineComponent->AddSplinePoint(position1, ESplineCoordinateSpace::Local, true);
    It kept creating infinite number of points on top of each other. I called it in an overriden OnCOonstruction() function. How can I create only one spline point?
    2. And also how can we create a splie points in a closed loop as in your video with code?
    Thanks in advance

    • @BeeBlueBubble
      @BeeBlueBubble  3 ปีที่แล้ว +2

      Thank you!
      1. I am afraid I've never tried to create point on the spline on code, so I don't know why you are having that issue. I would suggest you try to AddSplinePoint on BeginPlay instead and add a breakpoint on Visual Studio to see if that is being called more than once.
      2. I'd imagine you use the same function to add points: SplineComponent->AddSplinePoint.

    • @madara6060
      @madara6060 3 ปีที่แล้ว +2

      @@BeeBlueBubble Thank you very much. The spline points do not get created when I code in beginplay(). I'll share when I find a solution. Thanks again.

    • @BeeBlueBubble
      @BeeBlueBubble  3 ปีที่แล้ว +1

      @@madara6060 Thanks, I can´t be of more help I´ve never tried this option before

    • @madara6060
      @madara6060 3 ปีที่แล้ว +2

      @@BeeBlueBubble Hi. I figured it out :) I added spline points using AddSplinePoint() giving location to spawn in a seperate function and called it from overriden OnConstruction Function and gave a condition to execute only if number of spline points are

    • @BeeBlueBubble
      @BeeBlueBubble  3 ปีที่แล้ว +1

      @@madara6060 Fantastic, thanks for sharing!

  • @stajima9665
    @stajima9665 3 ปีที่แล้ว +1

    thx

  • @Ricardo299792
    @Ricardo299792 2 ปีที่แล้ว

    Thank you!

  • @kadirkara1764
    @kadirkara1764 3 ปีที่แล้ว +1

    thx