![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
UE4
Slime_666
程序员能吃吗?
展开
-
UE4 委托应用
1.单个委托 (测试只能绑定一个方法,绑定多个方法时执行最后一个绑定方法) 声明:DECLARE_DELEGATE_OneParam(MyDelegate, FVector); MyDelegate delegate_CameraMove; 执行: delegate_CameraMove.Excute(offset); 绑定: delegate_CameraMove.BindUObje原创 2017-02-16 11:34:49 · 786 阅读 · 0 评论 -
UE4 C++使用反射
使用: UFunction *rightFunc = this->FindFunction(FName(TEXT("OnRightMousePressed"))); if (rightFunc) ProcessEvent(rightFunc, nullptr); 蓝图直接使用蓝图对象根据方法名取得方法 注意:OnRightMousePressed是this中的一个方原创 2017-02-16 16:33:45 · 1070 阅读 · 0 评论 -
UE4 C++调用蓝图方法
1.创建接口 2.声明接口方法: UFUNCTION(BlueprintNativeEvent, BlueprintCallable, Category = "Item") void OnSelect(); 3.继承接口: #include "CharcterInterface.h" class GAMEREADY_API ACharactorCode : public ACha原创 2017-02-20 15:34:10 · 2019 阅读 · 0 评论 -
UE4 BehaviorTree笔记
1.BehaviourTree:每一帧都会执行 2.Blackboard:用来储存字段,主要用于保存AI状态,方便在不同的Task中访问 3.Composite(灰色):控制行为树走向 (1).Selector: 从左到右执行,直到子树返回True停止 (2).Sequence: 从左到右执行,直到子树返回False停止 4.Decorator(蓝色):内嵌在composite中,判断原创 2017-02-14 17:13:00 · 318 阅读 · 0 评论 -
UE4 委托及事件声明 (DelegateCombinations.h)
// Copyright 1998-2016 Epic Games, Inc. All Rights Reserved. #pragma once #define DECLARE_DELEGATE( DelegateName ) FUNC_DECLARE_DELEGATE( DelegateName, void ) #define DECLARE_MULTICAST_DELEGATE( De原创 2017-02-15 15:40:10 · 2801 阅读 · 0 评论