Advertisement
AbyssWolf

LibNebulaNodesBPLibrary.h

May 7th, 2024
554
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 1.90 KB | None | 0 0
  1. // Copyright Epic Games, Inc. All Rights Reserved.
  2.  
  3. #pragma once
  4. #include "Math/UnrealMath.h"
  5. #include "Kismet/BlueprintFunctionLibrary.h"
  6. #include "LibNebulaNodesBPLibrary.generated.h"
  7.  
  8. /*
  9. *   Function library class.
  10. *   Each function in it is expected to be static and represents blueprint node that can be called in any blueprint.
  11. *
  12. *   When declaring function you can define metadata for the node. Key function specifiers will be BlueprintPure and BlueprintCallable.
  13. *   BlueprintPure - means the function does not affect the owning object in any way and thus creates a node without Exec pins.
  14. *   BlueprintCallable - makes a function which can be executed in Blueprints - Thus it has Exec pins.
  15. *   DisplayName - full name of the node, shown when you mouse over the node and in the blueprint drop down menu.
  16. *               Its lets you name the node using characters not allowed in C++ function names.
  17. *   CompactNodeTitle - the word(s) that appear on the node.
  18. *   Keywords -  the list of keywords that helps you to find node when you search for it using Blueprint drop-down menu.
  19. *               Good example is "Print String" node which you can find also by using keyword "log".
  20. *   Category -  the category your node will be under in the Blueprint drop-down menu.
  21. *
  22. *   For more info on custom blueprint nodes visit documentation:
  23. *   https://wiki.unrealengine.com/Custom_Blueprint_Node_Creation
  24. */
  25. UCLASS()
  26. class ULibNebulaNodesBPLibrary : public UBlueprintFunctionLibrary
  27. {
  28.     GENERATED_BODY()
  29.  
  30.     //UFUNCTION(BlueprintCallable, meta = (DisplayName = "Execute Sample function", Keywords = "LibNebulaNodes sample test testing"), Category = "LibNebulaNodesTesting")
  31.     //static float LibNebulaNodesSampleFunction(float Param);
  32.  
  33.     UFUNCTION(BlueprintPure, Category="Nebula Nodes", meta = (DisplayName = "Random Vector2"))
  34.     static FVector2f RandomVector2(float fMin, float fMax, bool bPreventDuplicates, bool bRoundToInteger, float& x, float& y);
  35. };
  36.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement