Advertisement
Guest User

spline_extensions.h

a guest
Dec 28th, 2015
3,207
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #pragma once
  2.  
  3. #include "Kismet/BlueprintFunctionLibrary.h"
  4. #include "Components/SplineComponent.h"
  5. #include "spline_extensions.generated.h"
  6.  
  7. /**
  8.  *
  9.  */
  10. UCLASS()
  11. class TROPICALMANIPULATION_API Uspline_extensions : public UBlueprintFunctionLibrary
  12. {
  13.     GENERATED_BODY()
  14.    
  15. public:
  16.  
  17.     /* Sets the rotation on a spline point Local rotation only.*/
  18.     UFUNCTION(BlueprintCallable, Category = "Splines") //make the function usable in blueprints. BlueprintPure doesn't require exec; BlueprintCallable does.
  19.         static void set_rotation_at_spline_point(USplineComponent* target, const int32 point_index, const FRotator rotation); //define inputs and outputs. Const for inputs, and & for outputs.
  20.    
  21.    
  22. };
Advertisement
RAW Paste Data Copied
Advertisement