create_blueprint_function_library
Create a Blueprint Function Library in Unreal Engine to provide globally accessible utility functions across all Blueprints, eliminating the need for instantiation.
Instructions
Create a Blueprint Function Library with shared utility functions.
From Ch. 18: Create a Function Library (e.g., BP_DiceLibrary) whose functions are available globally in every Blueprint of the project. No instantiation needed.
Functions are defined as a list of dicts with:
name: function name
inputs: [{"name": str, "type": str, "default_value": any}]
outputs: [{"name": str, "type": str}]
description: optional description
Args: name: Library Blueprint name (e.g., "BP_DiceLibrary", "BP_MathUtils") functions: List of function definitions folder_path: Content browser folder
Example - dice roll library from the book: functions=[ {"name": "RollOneDie", "inputs": [{"name": "NumberOfFaces", "type": "Integer", "default_value": 6}], "outputs": [{"name": "Result", "type": "Integer"}]}, ]
KB: see knowledge_base/11_BLUEPRINT_LIBRARIES_AND_COMPONENTS.md#overview Example: create_blueprint_function_library(name="ExampleName")
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| functions | No | ||
| folder_path | No | /Game/Blueprints |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |