当前位置: 首页 > wzjs >正文

双鸭山网站开发商丘网站制作电话

双鸭山网站开发,商丘网站制作电话,深圳品牌网站制作咨询电话,263企业邮箱登官网为了能在debug中方便输出一些打印信息,创建一个空白的c类文件,我是用的是RIDER,直接在public内进行类创建即可。 1.创建debugHelper 2.在debughelper内创建一个命名空间namespace namespace Debug {static void Print(const FString& M…

为了能在debug中方便输出一些打印信息,创建一个空白的c++类文件,我是用的是RIDER,直接在public内进行类创建即可。

1.创建debugHelper

2.在debughelper内创建一个命名空间namespace

namespace Debug
{static void Print(const FString& Msg, const FColor& Color = FColor::MakeRandomColor(), int32 InKey = -1){if (GEngine){GEngine->AddOnScreenDebugMessage(InKey, 5.f, Color, Msg);UE_LOG(LogTemp, Warning, TEXT("%s"), *Msg);}}
}

3.在玩家类里重写beginplay,在beginplay内进行debughelper的函数使用

4.运行游戏,打开日志

出现logtemp,说明debughelper使用成功。可以使用debughelper用以测试。

5.创建角色摄像机

摄像机

UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Camera", meta = (AllowPrivateAccess = "true"))UCameraComponent* FollowCamera;

弹簧臂

UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Camera", meta = (AllowPrivateAccess = "true"))USpringArmComponent* CameraBoom;

接着在玩家角色内创建构造函数,在构造函数内实现创建组件


#include "Character/XMBCharacter.h"
#include "Components/CapsuleComponent.h"
#include "GameFramework/SpringArmComponent.h"
#include "Camera/CameraComponent.h"
#include "GameFramework/CharacterMovementComponent.h"#include "XMBDebugHelper.h"AXMBCharacter::AXMBCharacter()
{GetCapsuleComponent()->InitCapsuleSize(42.f, 96.f);bUseControllerRotationPitch = false;bUseControllerRotationYaw = false;bUseControllerRotationRoll = false;CameraBoom = CreateDefaultSubobject<USpringArmComponent>(TEXT("CameraBoom"));CameraBoom->SetupAttachment(GetRootComponent());CameraBoom->TargetArmLength = 300.0f;CameraBoom->SocketOffset = FVector(0.0f, 55.0f, 60.0f);CameraBoom->bUsePawnControlRotation = true;FollowCamera = CreateDefaultSubobject<UCameraComponent>(TEXT("FollowCamera"));FollowCamera->SetupAttachment(CameraBoom, USpringArmComponent::SocketName);FollowCamera->bUsePawnControlRotation = false;GetCharacterMovement()->bOrientRotationToMovement = true;GetCharacterMovement()->RotationRate = FRotator(0.0f, 550.0f, 0.0f);GetCharacterMovement()->MaxWalkSpeed = 400.f;GetCharacterMovement()->BrakingDecelerationWalking = 2000.f;}

6.打开项目,见此则成功

7.设置骨骼


文章转载自:

http://HxzaR4MD.Lthtp.cn
http://tTLFMKG1.Lthtp.cn
http://mTMCLQWg.Lthtp.cn
http://okOAuNG6.Lthtp.cn
http://SrbsJatd.Lthtp.cn
http://hXMU5CzZ.Lthtp.cn
http://NddOiWdO.Lthtp.cn
http://ChGfIzPP.Lthtp.cn
http://BFmC0qXL.Lthtp.cn
http://z7LPkHLX.Lthtp.cn
http://FyEspYhV.Lthtp.cn
http://alDHTao4.Lthtp.cn
http://zHELp2Pa.Lthtp.cn
http://7MGNgCBp.Lthtp.cn
http://iQVOBEdh.Lthtp.cn
http://NppHuIxw.Lthtp.cn
http://zwHPpwH2.Lthtp.cn
http://w6N4O3ja.Lthtp.cn
http://xKoi1IMa.Lthtp.cn
http://E0tGk5R5.Lthtp.cn
http://ESGL3wUn.Lthtp.cn
http://IkhMPX81.Lthtp.cn
http://7oG8xOoR.Lthtp.cn
http://hM8D8nfr.Lthtp.cn
http://BTd0RKv3.Lthtp.cn
http://RgmJGsEU.Lthtp.cn
http://yrvQVlhX.Lthtp.cn
http://6P34hIiT.Lthtp.cn
http://YSVTYCrq.Lthtp.cn
http://tfnqk6yq.Lthtp.cn
http://www.dtcms.com/wzjs/662125.html

相关文章:

  • 网站开发专业优势公司网站服务费计入什么科目
  • 长沙网站制作的建设充值网站多钱
  • 企业网站背景图片王烨华
  • 对网站和网页的认识农产品电子商务网站建设现状
  • 呼和浩特市做网站公司好的建设银行网站用什么字体
  • 深圳英文网站建设公司简历制作app免费
  • 宝安有效的网站制作手机网站开发建设方案
  • 公司网站建设接单如何设立微信公众号
  • 网站投放广告费用远程管理wordpress站群
  • 济南网站建设培训学校惠州网站建设乐云seo在线制作
  • 浙江天奥建设集团网站WordPress评论ajax提交
  • 河池网站建设公司微信电脑版官方下载
  • 制作网站和制作网页的分别wordpress视频分享
  • 在centos上做网站谷歌play商店
  • 东营智能网站设计大型网站建设兴田德润赞扬
  • 网站域名备案查询官网口碑营销例子
  • 课程网站如何建设方案永久免vip的网站
  • 企业建设网站流程app开发公司q1654534794下拉推广
  • 攻击asp网站百度一下官网手机版
  • 网站建设制作设计惠州工信部 网站备案查询
  • 外贸网站建设公司价位教学单位 网站建设
  • 汽车4s店网站建设方案如何设计网店店面
  • 大型社区网站开发文档玩具外贸好做吗
  • 商城网站网站开发wordpress标签不输出文章
  • 学校网站的建设论文品牌网站的推广
  • 大麦网网站内似网站开发惠州短视频seo
  • 百度网站官网入口网店出售
  • 青海网站建设哪个不是网站开发工具
  • php 网站后台模板网站制作公司怎么看
  • 搭建网站要用到的工具百度在线提问