《UE4 FAQ》
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了《UE4 FAQ》相关的知识,希望对你有一定的参考价值。
Q:怎样让你的游戏主角可以正对你而不是一直看到他的后背?
A:在你的主角类的blueprint里面,点击菜单栏上的”ClassDefault”按钮,在detail面板中的Pawn栏下,将”Use Controller Rotation Yaw”默认的勾选取消;在你的主角类的blueprint里面的CharacterMovement的details里面, “Use Controller Desired Rotation”为false,”Orient Rotation to Movement”为true,”Rotation Rate”的Z值控制自动旋转的时候的快慢,可以为540.0;
Q:怎样实现一个开门动画(不使用骨骼动画播放的方式)?
A:可以利用UE4中的TimeLine node,它可以进行基于时间的简单动画:Timeline nodes are special nodes within Blueprints that allow for simple time-based animation to be quickly designed and played back based on in-game events. Timelines are somewhat like simple Matinee sequences in that they allow simple values to be animated and events to be fired off over time. These can be edited directly inside the Blueprint editor by Double-clicking on the Timeline in the Graph tab or in the My Blueprint tab. They are specifically built for handling simple, non-cinematic tasks such as opening doors, altering lights, or performing other time-centric manipulations to Actors within a scene.
Web: https://docs.unrealengine.com/latest/INT/Engine/Blueprints/UserGuide/Timelines/index.html
具体步骤为:右键中增加一个timeline的节点,就会自动新增成为一个新的变量:
双击这个节点,就会打开timeliness的专属editor, 在里面设定各中类型(float, int, vector)的trigger,设定其随时间改变曲线; 在event graph里面就可以访问这些变量的值;
Q:怎样实现player踩踏到不同的材质的地面能够发出不同的脚步声?
A:可以利用UE4的physical material material的功能;
Q:UE4的localization是怎样实现的?
A:在输出到屏幕上一行字的机制中可以看出,文本信息是存储在特定包中的;
Q:怎样利用UE4实现NPC对话系统?
A:
https://wiki.unrealengine.com/NPC_Dialogue_System_Tutorial
https://answers.unrealengine.com/questions/82451/npc-dialog-system.html
https://answers.unrealengine.com/questions/149343/umg-quest-dialog-issue.html
Q:怎样实现一个物体接近地面的部分逐渐消失(如无腿幽灵)?
A:Node: in material editor, “DistanceToNearestSurface”;I use the DistanceToNearestSurface node to automatically detect the intersection between the terrain and a mesh. I combine this with a noise mask to get a nice procedural material transition.What really sells the effect is the adjustment of the vertex normals of the mesh.
Q:UE4中地形上的独立石头模型和地形本身融合不够好,怎样优化?
A:Web address: http://polycount.com/discussion/181140/unreal-4-terrain-blending-tool-inspired-by-star-wars-battlefront
以上是关于《UE4 FAQ》的主要内容,如果未能解决你的问题,请参考以下文章