include ../unreal/prelude
import ../codegen/[uemeta]
proc regularNimFunction() =
UE_Log "This is a regular nim function"
UE_Log "This is a regular nim function"
UE_Log "This is a regular nim function"
const testActorUEType = UEType(name: "ATestActor", parent: "AActor", kind: uetClass,
makeFieldAsUFun("SetColorByStringInMesh",
makeFieldAsUProp("color", "FString")
proc nimFunctionCalledInTick() = UE_Log "This is a nim function called in tick"
uDelegate FTestDelegate(param:FString)
uClass ANimTestActor of ATestActor:
(BlueprintType, Blueprintable)
uprops(EditAnywhere, BlueprintReadWrite):
name2 : FString = "Test2"
name3 : FString = self.name
uprops(BlueprintAssignable):
myDelegate : FTestDelegate
ufuncs(BlueprintCallable):
proc testPrint2() = UE_Log "Hello test print"
proc testStatic() {.static.} =
proc tick(deltaTime:float) =
self.setColorByStringInMesh("(R=1,G=0.1,B=0.8,A=1)")
UE_Log "Que pasa another change did this carah"
proc setColorInEditor() {.CallInEditor.} =
self.setColorByStringInMesh("(R=0,G=0.5,B=1.2,A=1)")