标签:
孙广东 2015.6.14
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
TextFx Unity Plugin v3.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
使用 Unity GUI TextFx
TextFx 3.0 comes with support for Unity‘s excellent new built-in GUI system (就是支持 "UGUI").
插件重载了UI Text components.
创建一个新的 TextFxUGUI instance
++++++++++++++++++++++++++++++++
- 你能够很容易的转换 任何存在的 UI Text 组件到 TextFxUGUI 组件, 使用 TextFx 菜单项。
- 选择你的 UI Text 对象在编辑器上 :
- Tools -> TextFx -> "Convert UGUI Text to TextFx"
- This will keep your text exactly as it is, but setup it up as a TextFxUGUI instance instead!
设置 TextFx 本地实例
TextFx 3.0 has it‘s own text rendering system included as well!
This is useful for setting up text animations which are unrestricted by any GUI rendering system. It‘s more like the old Unity 3D Text, except with awesome animations!
Create a New TextFxNative instance
++++++++++++++++++++++++++++++++
- Add a TextFxNGUI instance to your scene using the following menu item shortcut
- GameObject -> TextFx -> Text
- This will create a TextFxNative component in your scene.
- Position it whereever you like!
- Click the "Open Animation Editor" button at the bottom of the TextFxNative inspector panel to open the TextFx Editor panel
- Play around with adding Intro, Main and Outro animation phases with the Quick Setup editor, or get straight into the creating your own totally bespoke animations in the Full Editor!
TextFx Animations脚本
TextFx animations 动画脚本 是很容易的 !
- 添加 TextFx namespace 命名空间在你的脚本
- "using TextFx;"
- 获得一个动画类的引用 (TextFxNative, TextFxUGUI, TextFxNGUI)
- All key method calls are accessible through the AnimationManager property.
* effect.AnimationManager.PlayAnimation();
* effect.AnimationManager.ResetAnimation();
* effect.AnimationManager.ContinuePastBreak();
* effect.AnimationManager.ContinuePastLoop();
- See http://www.codeimmunity.co.uk/TextFx/scripting_reference.php for a list of the other script Methods and Properties available.
Note: EffectManager is the legacy name for the newer TextFxAnimationManager.
- 打开 animation editor 面板
* 单击 "Open Animation Editor" 按钮,在任何TextFx 对象的 inspector 面板上。
* Window -> TextFx -> Animation Editor
- 默认Quick Setup 面板被选择.
- Play around with the Intro, Main and Outro drop downs in order to select different animations to apply.
- Play button is at the top of the Animation Editor window!
Full TextFx Editor
- 打开 animation editor 面板
* 单击 "Open Animation Editor" 按钮,在任何TextFx 对象的 inspector 面板上。
* Window -> TextFx -> Animation Editor
- Use the tabs near the top of the panel to select "Full Editor"
- Here you are exposed to the bare bones of the animation editor, set free to create whatever you like!
- A good tip for learning what it all does is to import anims in the Quick Setup editor and then look at how it all works in the Full Editor. Maybe make modifications from there!
- See the online docs for more info on what it all means:
http://www.codeimmunity.co.uk/TextFx/creating_an_animation.php
Support
Support Website: http://www.codeimmunity.com/TextFx
Credits
https://www.assetstore.unity3d.com/#/content/5788 - Boomlagoon JSON; a great light-weight free JSON library used for the Import/Export functionality
http://www.freesfx.co.uk - sound effects used in demo scenes
http://www.1001freefonts.com/ - fonts used in demo scenes
标签:
原文地址:http://blog.csdn.net/u010019717/article/details/46490875