Code Monkey home page Code Monkey logo

sequencedialogue's Introduction

UE4 Sequencer 字幕轨道插件

工程介绍

本工程通过一个示例介绍项目中如何使用Sequencer字幕插件。 插件编辑如下图所示:

游戏内效果如图所示(创建UMG可以做出自己想要的效果):

UE4版本要求

本插件是基于UE4.19.2开发的,由于UE4.20开始,Epic对Sequencer代码做了较大的重构,所以目前不支持UE4.20以后的版本。各自如有需要,fork后自己修改即可。

如何编辑

  1. 安装插件后,Sequencer轨道列表中增加一个“Dialogue”的按钮,点击按钮,新增字幕轨道如图:

  2. 点击右边的+号按钮,再点击Dialogue添加一个字幕信息,如图:

  3. 右边会出现字幕信息的Section,Section的长度表示字幕显示的时间。右键Section,编辑属性信息,SpeakerName表示说话人的姓名,DialogueInfo表示说话内容,如图:

  4. 拖动时间轴可以在编辑器上看到字幕的预览,如图:

程序需要做哪些工作

程序人员需要在自己的GameMode类设置中继承Dialogue Interface的接口,并且实现ShowDialogueInfo函数,该函数共3个参数,show表示是否要显示字幕UI,true显示,false隐藏;Name表示说话人姓名,Info表示说话内容;通过实现该接口以及创建自己的UMG可以实现字幕UI定制。

欢迎你的加入

欢迎更多的人去完善它!

sequencedialogue's People

Contributors

hui211314dd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

sequencedialogue's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.