UE4常用函数

1、移动函数:Add Movement Input

2、获得控制的旋转:Get Control Rotation

3、获得Vector的向前/向右方向的向量:Get Forward Vector、Get Right Vector

4、绕某轴旋转:(Roll、Pitch、Yaw)

        X轴:Add Controller Roll Input

        Y轴:Add Controller Pitch Input

        Z轴:Add Controller Yaw Input

5、获得控制的角色:Try Get Pawn Owner

6、在AIController蓝图中,获取AI的控制(获得动画蓝图的持有者):Get Controlled Pawn

7、向量长度:VectorLength

8、使用蒙太奇动画:Play Anim Montage

扫描二维码关注公众号,回复: 13409686 查看本文章

9、停止蒙太奇动画:Stop Anim Montage

10、AI的移动:AI MoveTo

11、获得移动速度(向量):Get Velocity

12、获得玩家的角色:Get Player Character

13、设置计时器  —>  调用别的函数:Set Timer by Function Name

14、清除计时器:Clear Timer by Function Name

猜你喜欢

转载自blog.csdn.net/qq_44400944/article/details/120743247