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

医学网站建设方案公司做网站都需要什么材料

医学网站建设方案,公司做网站都需要什么材料,网站开发需要什么软件,给网站做seo诊断一、关于增强输入系统的介绍 增强输入系统官方文档介绍 二、增强输入系统的具体使用 注#xff1a;在使用方面#xff0c;不会介绍如何创建项目等基础操作#xff0c;如果还没有UE的使用基础#xff0c;可以参考一下我之前UE4的文章#xff0c;操作差别不会很大。 如上…一、关于增强输入系统的介绍 增强输入系统官方文档介绍 二、增强输入系统的具体使用 注在使用方面不会介绍如何创建项目等基础操作如果还没有UE的使用基础可以参考一下我之前UE4的文章操作差别不会很大。 如上图所示在自己创建好的项目工程中找到.Build.cs文件在添加的模块引用中添加EnhancedInput模块添加这个模块之后才能在写完增强输入系统的代码后正确运行。 代码 //输入映射 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category Input, meta (AllowPrivateAccess true))class UInputMappingContext* DefaultMappingContext; //移动 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category Input, meta (AllowPrivateAccess true))class UInputAction* MoveAction; //上下左右看 UPROPERTY(EditAnywhere, BlueprintReadOnly, Category Input, meta (AllowPrivateAccess true))class UInputAction* LookAction; 在我们创建完成的角色类中添加必要的组件比如摄像机臂组件和摄像机组件。UInputMappingContext是用来引用操作上下文而UInputAction对应某个具体的操作比如我们的WASD前后左右移动鼠标轴挥动去上下左右看当我们的Action创建完成之后去放到操作上下文中去映射这个时候我们的输入便被绑定到角色中。 代码 UEnhancedInputComponent* EnhancedInputComponent CastCheckedUEnhancedInputComponent(PlayerInputComponent); if (EnhancedInputComponent MoveAction LookAction) {EnhancedInputComponent-BindAction(MoveAction, ETriggerEvent::Triggered,this,ASCharacter::Move);EnhancedInputComponent-BindAction(LookAction, ETriggerEvent::Triggered, this, ASCharacter::Look);} 在角色输入绑定函数中用增强输入组件去绑定Action之后输入操作按键便会执行对应的操作。 对于ETriggerEvent在引擎源代码中有相应的介绍有按键按下一直按住松开时的处理会比UE4的输入更加详细。 在Move和Look的函数中处理角色移动和上下左右看。 Move代码 FVector2D MovementVector Value.GetFVector2D();if (Controller){const FRotator ControlRotation Controller-GetControlRotation();const FRotator YawRotation FRotator(0.0f,ControlRotation.Yaw,0.0f);const FVector ForawrdDirection FRotationMatrix(YawRotation).GetUnitAxis(EAxis::X);const FVector RightDirection FRotationMatrix(YawRotation).GetUnitAxis(EAxis::Y);AddMovementInput(ForawrdDirection,MovementVector.Y);AddMovementInput(RightDirection, MovementVector.X);} Look代码 FVector2D LookVector Value.GetFVector2D();if (Controller){AddControllerYawInput(LookVector.X);AddControllerPitchInput(LookVector.Y);} 以上处理完成之后需要在游戏运行的时候添加增强输入系统的映射。 APlayerController* PlayerController CastAPlayerController(Controller);UEnhancedInputLocalPlayerSubsystem* EnhancedInputSystem ULocalPlayer::GetSubsystemUEnhancedInputLocalPlayerSubsystem(PlayerController-GetLocalPlayer());if (EnhancedInputSystem DefaultMappingContext){EnhancedInputSystem-AddMappingContext(DefaultMappingContext,0);} 这个时候回到引擎中去创建一个输入映射和move、look的Action。 在移动和上下左右看的Action中添加需要操作的按键。 MappingContext中绑定注意方向输入 注意在角色蓝图中去选择创建的输入和映射。
http://www.w-s-a.com/news/354999/

相关文章:

  • 百度快照比网站上线时间早wordpress新建阅读量字段
  • 国家工程建设标准化协会网站网站开发工具有
  • 上海网站建设集中公关公司组织架构图
  • wordpress副标题的作用百度网站标题优化
  • 大连哪家公司做网站比较好wordpress 判断用户组
  • 网站空间1g多少钱东莞公司高端网站建设
  • 网站服务器出错是什么意思做餐饮酒店网站
  • 房地产网站建设策划方案网站建设教程简笔画
  • 3d室内设计软件wordpress本地优化加速版
  • 南京高新区规划建设局网站石家庄哪里做网站比较好
  • 免费培训课程网站优化的方式
  • 做网站要固定电话在家自己做网站
  • 招聘网站开发视频新手如何做网站维护
  • flash 网站欣赏国外做的比较好的网站有哪些
  • 推广一个网站需要什么官网首页设计
  • 淘宝建设网站的理由企业官网建设哪家好
  • 青岛网站推wordpress主题切换
  • 天元建设集团有限公司资质郑州网站seo推广
  • 免费网站后台管理系统模板下载百度网盘app下载安装
  • 开封网站建设培训郑州高端网站建设哪家好
  • 东莞哪家做网站很有名的公司即墨专业医院网站制作公司
  • 做面食网站china cd wordpress
  • 门户网站 营销优秀建筑模型案例作品
  • 训做网站的心得体会范文中山市 有限公司网站建设
  • 服装电子商务网站建设过程与实现两学一做学习教育网站
  • 住房和城建设网站怎么用源码建站
  • 监理工程师证查询网站百度关键词优化软件网站
  • 关于建筑建设的网站asp网站建设报告书
  • 服务二级公司网站建设平台销售模式有哪些
  • 南昌县建设局网站微信分销小程序开发