1 新建c++类MyActor

2 MyActor.h

// Fill out your copyright notice in the Description page of Project Settings.#pragma once#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "MyActor.generated.h"UCLASS()
class ROTATE_API AMyActor : public AActor
{GENERATED_BODY()public:    // Sets default values for this actor's propertiesAMyActor();protected:// Called when the game starts or when spawnedvirtual void BeginPlay() override;public: // Called every framevirtual void Tick(float DeltaTime) override;// declare variablesUPROPERTY(EditAnywhere)AActor* MyActor2;};

MyActor.cpp

// Fill out your copyright notice in the Description page of Project Settings.#include "MyActor.h"
// include gameplay statics header file
#include "Kismet/GameplayStatics.h"// Sets default values
AMyActor::AMyActor()
{// Set this actor to call Tick() every frame.  You can turn this off to improve performance if you don't need it.PrimaryActorTick.bCanEverTick = true;
}// Called when the game starts or when spawned
void AMyActor::BeginPlay()
{Super::BeginPlay();//Find the actor that handles control for the local player.APlayerController* OurPlayerController = UGameplayStatics::GetPlayerController(this, 0);//Smoothly transition to our actor on begin play.OurPlayerController->SetViewTargetWithBlend(MyActor2, 2.f);}// Called every frame
void AMyActor::Tick(float DeltaTime)
{Super::Tick(DeltaTime);
}

3 设置组件点击运行

ue4 相机移动到指定actor位置 SetViewTargetWithBlend相关推荐

  1. Redis中列表list数据类型(增加(在左侧、右侧或指定元素前后插入数据)、获取(获取表内指定范围的元素)、更新(获取指定索引位置的元素值)、删除(删除指定元素、count))

    列表的元素类型为string 按照插⼊顺序排序 1. 增加 1.1 在左侧插⼊数据 lpush key value1 value2 ... 例1:从键为a1的列表左侧加⼊数据a . b .c lpus ...

  2. js调整数组某些元素到指定位置顺序_Js数组里剔除指定的元素(不是指定的位置)...

    s数组里删除指定的元素(不是指定的位置) 之前一直是做后端的,从来也没有写过js,但是却一直想学学,也只是基于兴趣而已!现在到了这个公司,确实大量的写js.但也一直都是没有系统的去看过js!都是搞什么 ...

  3. numpy使用[]语法索引二维numpy数组中指定行列位置的数值内容(access value at certain row and column in numpy array)

    numpy使用[]语法索引二维numpy数组中指定行列位置的数值内容(access value at certain row and column in numpy array) 目录

  4. python使用statsmodels包中的tsaplots函数和lags参数可视化时间序列数据指定滞后位置个数(级别)以前的所有自相关性(plot the autocorrelation)

    python使用statsmodels包中的tsaplots函数和lags参数可视化时间序列数据指定滞后位置个数(级别)以前的所有自相关性(plot the autocorrelation Funct ...

  5. R语言str_sub函数从字符串中提取或替换子字符串(substring):str_sub函数指定起始位置和终止位置抽取子字符、str_sub函数指定起始位置和终止位置替换子字符串

    R语言str_sub函数从字符串中提取或替换子字符串(substring):str_sub函数指定起始位置和终止位置抽取子字符.str_sub函数指定起始位置和终止位置替换子字符串 目录

  6. python安装位置是固定的吗_pip指定python位置安装软件包的方法

    由于电脑上安装了多个版本的pip,以及不同的pip对应不同的python,因此有时候使用pip install安装某个包时,可能会没有安装在想要的位置. 具体而言,在我电脑上,运行pip --vers ...

  7. 检查人物身上指定物品位置是否佩带指定物品名称

    功能:     检查人物身上指定物品位置是否佩带指定物品名称(为空则检查人物身上指定位置是否佩带物品) 命令:     :CHECKUSEITEM 物品位置(0-13) 物品名称(空) hero 说明 ...

  8. 在EXCEL指定SHEET页,指定文字位置,插入批注

    2019独角兽企业重金招聘Python工程师标准>>> Java操作EXCEL文件,利用POI,在EXCEL指定SHEET页中指定文字位置处插入批注 第一种:会覆盖原来的备注 pac ...

  9. 易语言关闭指定窗口_易语言取外部程序指定窗口位置源码 _易语言源码网_易语言资源网...

    取外部程序指定窗口位置 系统结构:取窗口位置,取指定窗口句柄,窗口是否最大,窗口是否最小, ======窗口程序集1 |  | |  |------ _按钮1_被单击 |  | |  | ====== ...

  10. 处理字符串_12_按照指定的位置截取字符

    按照指定的位置截取字符 需求描述 需求:按照逗号拆分字符串,取拆分出来的第二个子串. 解决方法:这里需要自定义函数结合substring截取字符串,以达到该效果. 注: 数据库数据集SQL脚本详见如下 ...

最新文章

  1. 退信之550 5.7.1 Unable to relay for *@*.com
  2. Unity 2D游戏开发教程之精灵的死亡和重生
  3. 面试常问的29个linux命令
  4. 计算机网络-思维导图(4)网络层
  5. healthd: battery l=1 v=0 t=27.0 h=2 st=1 chg=a 注释方法
  6. 修改itunes备份路径的方法(奇奇怪怪的文件堆积C盘,别让文件成为最后的稻草哦)
  7. Linux 安装和卸载JDK
  8. Java for LeetCode 036 Valid Sudoku
  9. 快手用户群体分析_报告称快手用户分布与移动互联网人群分布一致
  10. 【开箱】索尼A6000微单入手
  11. composer 进行tp6的安装
  12. 设置计算机屏幕保护程序,电脑屏保怎么设置?一键设置电脑屏幕保护方法
  13. 街头篮球常常服务器连接中断,街头篮球总是掉线,街头篮球打一局就掉线
  14. 将秒针声音加入JAVA,喜马拉雅联合秒针系统发布声音流广告报告 :“好声音”将不再是打扰...
  15. 自己制作icon图标
  16. 计算机图形学——光线追踪(RayTracing)算法
  17. 家装家居自救指南:线上线下大融合
  18. ArcGIS Online试用版注册 并发布要素服务
  19. Vijos P1794 文化之旅
  20. php 代付功能_PHP之RSA2加密解密(接入微众银行代付功能过程中使用)

热门文章

  1. ROS naviagtion analysis: costmap_2d--Costmap2D
  2. uni-app和H5页面使用支付宝登陆问题解决
  3. java取北京时间_在java中怎么获取北京时间
  4. 对话阿里云,后疫情时代数字化的关键词
  5. 刘宇凡:解读微信朋友圈策略调整的重要目的
  6. 梅科尔工作室-OpenEuler培训第二讲笔记
  7. 青岛科技大学古典音乐考试需要的资料
  8. el-select如何自定义下拉选项框的宽度
  9. 麒麟系统安装lnmp
  10. 网关的作用(两个内网主机通信原理)