unity3d——iGUI实现图片动画
2013-08-17 16:47
561 查看
图片动画
注意: iGUI Basic.版本不能使用。如图:创建一个IGUIImahe元素,然后于监视面板中,在该组件的icon的地方,右键选择“Add texture animation”即可。
You’ll notice that an iGUI Texture Animation component will be automatically added to the element. First you have to select the Target property that decides which texture field will be animated. Then add some textures to images array and set the frames per
second field.
When loop type is set to :
* Pause: The animation will play and pause at the last frame after the animation is complete.
* Pause and rewind: The animation will play and pause at the first frame after the animation is complete.
* Stop : The animation will play and will revert to the original image (not an animation frame) after the animation
is complete.
* Loop : The animation will play and loop.
Now you can give a name to the animation to access later from code. You can access an animation of button1 with name “animation1″ by :
C#
JS
public void button1_Click(iGUIButton
caller){
iGUITextureAnimation myAnimation = button1.getTextureAnimation("animation1");
myAnimation.playFromStart();
}
相关文章推荐
- unity3d_iGUI_图片拖动效果的实现
- 自定义View实现仿朋友圈的图片查看器,缩放、双击、移动、回弹、下滑退出及动画等
- jQuery动画效果实现图片无缝连续滚动
- Android之ViewFlipper实现手动+自动切换图片(附加动画效果)
- 微信小程序 Animation实现图片旋转动画示例
- 原生JS实现匀速图片轮播动画
- 使用CAShapeLayer来实现圆形图片加载动画[译]
- Android Tween动画之RotateAnimation实现图片不停旋转
- jQuery插件ImageDrawer.js实现动态绘制图片动画(附源码下载)
- 用UIImageView实现几张图片轮转已达到动画效果
- 01-实现图片按钮的缩放、动画效果(block的初步应用)
- iOS 用Swipe手势和动画实现循环播放图片示例
- VC实现图片拖拽及动画的实例
- <Unity3D UGUI>用UGUI方式实现图片的遮罩,圆角图片,圆形图片效果
- FileUpload上传图片前实现图片预览功能(附演示动画)
- ViewFlipper实现图片动画
- gif的动画图片,可否实现文字水印和图片水印的效果呢?
- Android图片实现动画(解决TranslateAnimation的残影问题)
- Unity3D实现UGUI 图片拖拽旋转和拖拽移动