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

做网站怎么字体全部变粗了网站推广有哪些方案

做网站怎么字体全部变粗了,网站推广有哪些方案,免费做图片的网站,国内疫苗接种率这一篇是进行玩家移动和视角移动的介绍。 1.在玩家内进行移动覆写 virtual void SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) override; 2.创建增强输入资产的变量创建 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category CharacterD…这一篇是进行玩家移动和视角移动的介绍。 1.在玩家内进行移动覆写 virtual void SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) override; 2.创建增强输入资产的变量创建 UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category CharacterData, meta (AllowPrivateAccess true))UDA_InputConfig* InputConfigDataAsset; 3.进行移动和视角移动函数的创建 void Input_Move(const FInputActionValue InputActionValue);void Input_Look(const FInputActionValue InputActionValue); 4.在SetupPlayerInputComponent函数内进行输入绑定 //设置玩家输入组件 void AXMBCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) {//添加映射上下文checkf(InputConfigDataAsset, TEXT(Forgot to assign a valid data as input config))//获取本地玩家ULocalPlayer* LocalPlayer GetControllerAPlayerController()-GetLocalPlayer();//获取增强输入子系统UEnhancedInputLocalPlayerSubsystem* Subsystem ULocalPlayer::GetSubsystemUEnhancedInputLocalPlayerSubsystem(LocalPlayer);check(Subsystem);//添加映射上下文Subsystem-AddMappingContext(InputConfigDataAsset-DefaultMappingContext,0);//获取角色输入组件并绑定输入动作UXMBWarriorInputComponent* WarriorInputComponent CastCheckedUXMBWarriorInputComponent(PlayerInputComponent);WarriorInputComponent-BindNativeInputAction(InputConfigDataAsset,XMBGameplayTags::InputTag_Move, ETriggerEvent::Triggered,this,ThisClass::Input_Move);WarriorInputComponent-BindNativeInputAction(InputConfigDataAsset,XMBGameplayTags::InputTag_Look, ETriggerEvent::Triggered,this,ThisClass::Input_Look);} 5.对Move函数进行设置 void AXMBCharacter::Input_Move(const FInputActionValue InputActionValue) {//获取移动向量const FVector2D MovementVector InputActionValue.GetFVector2D();//获取移动旋转const FRotator MovementRotation(0.f, Controller-GetControlRotation().Yaw, 0.f);//处理前后移动if (MovementVector.Y ! 0.f){const FVector ForwardDirection MovementRotation.RotateVector(FVector::ForwardVector);AddMovementInput(ForwardDirection, MovementVector.Y);}//处理左右移动if (MovementVector.X ! 0.f){const FVector RightDirection MovementRotation.RotateVector(FVector::RightVector);AddMovementInput(RightDirection, MovementVector.X);}} 6.对视角移动函数进行设置 void AXMBCharacter::Input_Look(const FInputActionValue InputActionValue) {const FVector2D LookAxisVector InputActionValue.GetFVector2D();if (LookAxisVector.X ! 0.f){AddControllerYawInput(LookAxisVector.X);}if (LookAxisVector.Y ! 0.f){AddControllerPitchInput(LookAxisVector.Y);} }7.打开引擎进入角色蓝图细节面板搜索data更换成自己的dataasset #include Character/XMBCharacter.h #include Components/CapsuleComponent.h #include GameFramework/SpringArmComponent.h #include Camera/CameraComponent.h #include GameFramework/CharacterMovementComponent.h #include EnhancedInputSubsystems.h #include Data/Input/DA_InputConfig.h #include Components/Input/XMBWarriorInputComponent.h #include XMBGameplayTags.h#include XMBDebugHelper.hAXMBCharacter::AXMBCharacter() {GetCapsuleComponent()-InitCapsuleSize(42.f, 96.f);bUseControllerRotationPitch false;bUseControllerRotationYaw false;bUseControllerRotationRoll false;CameraBoom CreateDefaultSubobjectUSpringArmComponent(TEXT(CameraBoom));CameraBoom-SetupAttachment(GetRootComponent());CameraBoom-TargetArmLength 300.0f;CameraBoom-SocketOffset FVector(0.0f, 55.0f, 60.0f);CameraBoom-bUsePawnControlRotation true;FollowCamera CreateDefaultSubobjectUCameraComponent(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;}void AXMBCharacter::BeginPlay() {Super::BeginPlay();Debug::Print(FString::Printf(TEXT(XMBCharacter::BeginPlay))); }//设置玩家输入组件 void AXMBCharacter::SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) {//添加映射上下文checkf(InputConfigDataAsset, TEXT(Forgot to assign a valid data as input config))//获取本地玩家ULocalPlayer* LocalPlayer GetControllerAPlayerController()-GetLocalPlayer();//获取增强输入子系统UEnhancedInputLocalPlayerSubsystem* Subsystem ULocalPlayer::GetSubsystemUEnhancedInputLocalPlayerSubsystem(LocalPlayer);check(Subsystem);//添加映射上下文Subsystem-AddMappingContext(InputConfigDataAsset-DefaultMappingContext,0);//获取角色输入组件并绑定输入动作UXMBWarriorInputComponent* WarriorInputComponent CastCheckedUXMBWarriorInputComponent(PlayerInputComponent);WarriorInputComponent-BindNativeInputAction(InputConfigDataAsset,XMBGameplayTags::InputTag_Move, ETriggerEvent::Triggered,this,ThisClass::Input_Move);WarriorInputComponent-BindNativeInputAction(InputConfigDataAsset,XMBGameplayTags::InputTag_Look, ETriggerEvent::Triggered,this,ThisClass::Input_Look);}void AXMBCharacter::Input_Move(const FInputActionValue InputActionValue) {//获取移动向量const FVector2D MovementVector InputActionValue.GetFVector2D();//获取移动旋转const FRotator MovementRotation(0.f, Controller-GetControlRotation().Yaw, 0.f);//处理前后移动if (MovementVector.Y ! 0.f){const FVector ForwardDirection MovementRotation.RotateVector(FVector::ForwardVector);AddMovementInput(ForwardDirection, MovementVector.Y);}//处理左右移动if (MovementVector.X ! 0.f){const FVector RightDirection MovementRotation.RotateVector(FVector::RightVector);AddMovementInput(RightDirection, MovementVector.X);}// if (MovementVector.Z ! 0.f)// {// const FVector RightDirection MovementRotation.RotateVector(FVector::UpVector);//// AddMovementInput(RightDirection, MovementVector.Z);// }}void AXMBCharacter::Input_Look(const FInputActionValue InputActionValue) {const FVector2D LookAxisVector InputActionValue.GetFVector2D();if (LookAxisVector.X ! 0.f){AddControllerYawInput(LookAxisVector.X);}if (LookAxisVector.Y ! 0.f){AddControllerPitchInput(LookAxisVector.Y);} } // Fill out your copyright notice in the Description page of Project Settings.#pragma once#include CoreMinimal.h #include InputActionValue.h #include Character/CharacterBase.h #include XMBCharacter.generated.hclass UDA_InputConfig; class UCameraComponent; class USpringArmComponent; struct FInputActionValue; /*** */ UCLASS() class ARPG_GRIVITY_API AXMBCharacter : public ACharacterBase {GENERATED_BODY() public:AXMBCharacter();protected:virtual void BeginPlay() override;virtual void SetupPlayerInputComponent(UInputComponent* PlayerInputComponent) override;private:UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category Camera, meta (AllowPrivateAccess true))USpringArmComponent* CameraBoom;UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category Camera, meta (AllowPrivateAccess true))UCameraComponent* FollowCamera;//UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category CharacterData, meta (AllowPrivateAccess true))UDA_InputConfig* InputConfigDataAsset;void Input_Move(const FInputActionValue InputActionValue);void Input_Look(const FInputActionValue InputActionValue);};
http://www.zqtcl.cn/news/808501/

相关文章:

  • 四川省城乡和住房建设厅网站首页通过邮箱查注册网站
  • 自己的网站怎么编辑如何做响应式的网站
  • 做一个产品网站要多少钱网站宣传与推广的方法
  • 郑州区块链数字钱包网站开发公司局部装修改造找哪家装修公司
  • 网站界面可以做版权吗学生网站建设的总结与评价
  • 用表格做网站10条重大新闻
  • 河南定制网站建设报价盐城网站建设制作工作室
  • 能看各种网站的浏览器wordpress文章名称背景
  • ppt做视频模板下载网站网站建设在哪些方面
  • 能用pinduoduo做网站吗网站建设行业的分析
  • 新乡商城网站建设价格做网站网站会怎么样
  • 给个网站能用的2022作品集模板
  • 做推送好用的网站科技资讯网站有哪些
  • 手机上如何制作网站wordpress阅读量随机生成
  • 汝州市住房和城乡建设局网站网站自己做流量
  • 怎么做网站有利于收录沭阳做网站公司排名前十
  • 给企业做网站如何定价电商系统平台
  • 山东川畅科技网站设计流量网站建设教程
  • 湖南省住房建设厅网站企业手机网站制作
  • 做虚假网站犯法吗发稿计划
  • 网站怎么防黑客网站建设一般要多大空间
  • 做网站一般要多钱织梦做网站被告
  • 响应式网站如何设计网页设计与制作课程标准化项目申报书
  • 苏州公司技术支持 苏州网站建设蔬菜类网站建设规划书
  • 主流做网站wordpress字体设置
  • 大连网站建设解决方案加快政务网站群建设管理
  • 淮南网站建设全包成都设计咨询集团有限公司
  • 网站管理助手v3wordpress主题防盗版
  • 国外网页加速器seo优化排名怎么做
  • 网站后台做图片尺寸是多大企业网站的常见服务