Skip to content

Instantly share code, notes, and snippets.

View AndreaCatania's full-sized avatar
🍇
Hey!

Andrea Catania AndreaCatania

🍇
Hey!
View GitHub Profile
extends Node3D
var player_query: DynamicQuery
var animation_tree: AnimationTree
var root_state_machine: AnimationNodeStateMachinePlayback
func _ready():
# Build the player query used to fetch the player status.
player_query = DynamicQuery.new()
@AndreaCatania
AndreaCatania / difftool.py
Created June 4, 2023 18:44
UnrealEngine difftool executor
#!/usr/bin/python
## DESCRIPTION:
## This script is an utility that simplifies the UE-diff-tool usage via git.
##
## HOW IT WORKS:
## Git provides the possibility to use thirdparty tools to DIFF and MERGE the files.
## Unreal provides both tools for the binary `.uasset`.
## By following the SETUP section, you will be able to use the `git difftool -t UE_Diff`
@AndreaCatania
AndreaCatania / MBuildUtils.cs
Last active April 20, 2024 10:40
Utility used to execute console commands (like the one to compile CMake projects) during the compilation steps of Unreal Engine.
// Utility used to execute console commands (like the one to compile CMake projects) during the compilation steps of Unreal Engine.
public class MBuildUtils
{
public string MModulePath = "";
// Taken from UE4Cmake - Kudos to `caseymcc`
private Tuple<string, string> GetExecuteCommandSync()
{
string cmd = "";
@AndreaCatania
AndreaCatania / ModifyEnumNamesAtRuntimeInUE5.cpp
Last active April 20, 2024 10:39
How to modify Enum names at runtime in Unreal Engine 5 and Unreal Engine 4
// Define your enum as usual inside an Header file.
UENUM()
enum class EMyEnums : uint8
{
MyEnum1,
MyEnum2,
MyEnum3,
MyEnum4,
MyEnum5,
};
@AndreaCatania
AndreaCatania / Readme.txt
Created May 4, 2024 08:37
Compile thirdparty library using CMake - Appendix
Readme.txt