set actor location(设置位置) 01:20 add actor local rotation(旋转功能) 01:48 blueprint(创建蓝图) 01:47 add actor local offset(移动功能) 02:02 lookAt(朝向目标,注视某物体,看向对象) 03:15 set actor scale 3d (设置缩放) 01:23 set actor rotation(设置旋转 ) 01:42 actor和self reference(对...
上一章,我们讲了Main之后的注册,讲了CDO的构建,讲了整个引擎启动流程,顺便稍微提了一嘴GC的启动关闭时机,接下来我们会讲类型的继续构造,包括Class、ScriptStruct、Property、Function。 UClass: #pragma once#include"CoreMinimal.h"#include"UObject/Object.h"#include"MyClass.generated.h"UCLASS()classCPPLEARNING_...
ObjClass = ThisObject->GetClass(); //UE5.4中还没有对使用impersonator时CDO的支持 DiffObject = ObjClass->GetDefaultObject(false); } /* 根据是否存在编辑时状态而进入不同分支, 编辑时需要序列化一些Debug数据 */ ObjClass->SerializeTaggedProperties(Slot...
Reference=(MemberParent=\"/Script/CoreUObject.Class\'/Script/Engine.KismetMathLibrary\'\",MemberName=\"Round\")\r\n NodePosX=202\r\n NodePosY=450\r\n NodeGuid=B00B63494C6E6A256821AA9D229F5EAF\r\n CustomProperties Pin (PinId=72D15923470ACE62B53823B40C...
voidCallFunctionByNameNoParam(UObject*inObj,constFStringinName){UClass*TempClass=inObj->GetClass();UFunction*TempFunc=TempClass->FindFunctionByName(*inName);inObj->ProcessEvent(TempFunc,NULL);} 目标二:通过函数名+Json字符串,调用带参函数
This prevents the editor from ever saving a reference to it, and speeds up saving and loading of the blueprint class.Because of this, all transient variables should always be initialized as zero or null. To do otherwise would result in hard to debug errors....
用直接返回this, 就会导致多组智能指针 ptr(new MyClass) MakeShared 比直接用普通指针创建效率更高 包括用于TUniquePtr的MakeUnique MakedShared只需要进行一次内存申请(2块内存 1数据1控制块) MakeShareable 将一个普通指针转换为智能指针 MakeShareable 支持自定义删除对象的行为:deleter ...
Class=/Script/BlueprintGraph.K2Node_VariableGet Name="K2Node_VariableGet_0" VariableReference=(MemberParent=Class'"/Script/Engine.StaticMeshActor"',MemberName="StaticMeshComponent") SelfContextInfo=NotSelfContext NodePosX=384 NodePosY=-16 NodeGuid=40F429264E997CBFF58AF19950891B7C CustomProperties...
You don’t need to change the default settings, but let’s take a moment to review them for future reference. Detection Model:AI model for detection. You can choose betweenMULTI_CLASS_BOX(fast, but less accurate),MULTI_CLASS_BOX_MEDIUM(less fast, but more accurate), andMULTI_CLASS_BOX_...
* 自定义场景百分比接口...为了更自由的控制Capture的最大最小百分比*/classXXX_API FCaptureScreenPercentageDriver :publicISceneViewFamilyScreenPercentage {public: FORCEINLINE FCaptureScreenPercentageDriver(constFSceneViewFamily&InViewFamily,floatInGlobalResolutionFraction) ...