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

政府网站宣传方案什么是核心关键词

政府网站宣传方案,什么是核心关键词,英文手机商城网站建设,辣条网站建设书SpinePro中添加事件帧 首先 选中右上角的层级树 然后选择事件选项 最后在右下角看到 新建 点击它 新建一个事件 点击左上角的设置按钮 弹出编辑窗口 编辑窗口 在右上角 动画栏 可以切换对应的动画 点坐边的那个小灰点来切换 亮点代表当前动画 选中帧 添加事件 点击对应事件…

SpinePro中添加事件帧

首先 选中右上角的层级树 然后选择事件选项

在这里插入图片描述

最后在右下角看到 新建 点击它 新建一个事件

在这里插入图片描述
在这里插入图片描述

点击左上角的设置按钮 弹出编辑窗口

在这里插入图片描述
编辑窗口
在这里插入图片描述

在右上角 动画栏 可以切换对应的动画

点坐边的那个小灰点来切换 亮点代表当前动画
在这里插入图片描述

选中帧

在这里插入图片描述

添加事件 点击对应事件的🔑图标 在当前帧添加事件

在这里插入图片描述

添加成功后 点击左下角播放按钮 可以看到 人物身边有对应事件的文本弹出 表示添加成功

在这里插入图片描述

Unity监听Spine帧事件

面板上添加

可以一个事件 添加多个监听
在这里插入图片描述

代码中动态添加

一个事件可以添加多个监听
在这里插入图片描述

在这里插入图片描述

源码

using System.Collections.Generic;
using UnityEngine;
using Spine.Unity;
using Spine;
using System;
using UnityEngine.Events;public class SpineEventHelper : MonoBehaviour
{[Serializable]public class SpineFrameKey{[SpineEvent] public string key;public UnityEvent handler;}[SerializeField] private List<SpineFrameKey> handlers;private Dictionary<string, UnityEvent> keyFrameEventDict = new Dictionary<string, UnityEvent>( );public const string START_EVENT = "START_EVENT", END_EVENT = "END_EVENT";private SkeletonAnimation skeletonAnimation;private void Start( ){Bind( );}private void Bind( ){skeletonAnimation = GetComponent<SkeletonAnimation>( );if ( skeletonAnimation == null ) return;skeletonAnimation.AnimationState.Event += HandleEvent;skeletonAnimation.AnimationState.Start += delegate ( TrackEntry trackEntry ){if ( keyFrameEventDict.TryGetValue( START_EVENT, out UnityEvent @event ) ){@event.Invoke( );}};skeletonAnimation.AnimationState.End += delegate{if ( keyFrameEventDict.TryGetValue( END_EVENT, out UnityEvent @event ) ){@event.Invoke( );}};foreach ( var handler in handlers ){keyFrameEventDict[ handler.key ] = handler.handler;}}/// <summary>/// 添加自定义的帧事件/// </summary>/// <param name="key"> 帧名称 </param>/// <param name="handler"> 处理的方法 </param>public void AddCustomEventHandler( string key, UnityAction handler ){if ( keyFrameEventDict.TryGetValue( key, out UnityEvent ev ) ){ev.AddListener( handler );}else{var ue = new UnityEvent( );ue.AddListener( handler );keyFrameEventDict.Add( key, ue );}}/// 移除自定义的帧事件/// </summary>/// <param name="key"> 指定帧名称 </param>/// <param name="handler"> 处理的方法 如果忽略则移除key的所有帧事件 </param>public void RemoveCustomEventHandler( string key, UnityAction handler = null ){if ( keyFrameEventDict.TryGetValue( key, out UnityEvent ev ) ){if ( handler == null ){ev.RemoveAllListeners( );}else{ev.RemoveListener( handler );}}}/// <summary>/// 添加动画开始事件/// </summary>/// <param name="handler"> 开始处理事件的方法 </param>public void AddStartEventHandler( UnityAction handler ){if ( keyFrameEventDict.TryGetValue( START_EVENT, out UnityEvent ev ) ){ev.AddListener( handler );}else{var ue = new UnityEvent( );ue.AddListener( handler );keyFrameEventDict.Add( START_EVENT, ue );}}/// <summary>/// 移除开始帧事件/// </summary>/// <param name="handler"></param>public void RemoveStartEventHandler( UnityAction handler ){if ( keyFrameEventDict.TryGetValue( START_EVENT, out UnityEvent ev ) ){ev.RemoveListener( handler );}}/// <summary>/// 添加结束帧事件/// </summary>/// <param name="handler"></param>public void AddEndEventHandler( UnityAction handler ){if ( keyFrameEventDict.TryGetValue( END_EVENT, out UnityEvent ev ) ){ev.AddListener( handler );}else{var ue = new UnityEvent( );ue.AddListener( handler );keyFrameEventDict.Add( END_EVENT, ue );}}/// <summary>/// 移除结束帧事件/// </summary>/// <param name="handler"></param>public void RemoveEndEventHandler( UnityAction handler ){if ( keyFrameEventDict.TryGetValue( END_EVENT, out UnityEvent ev ) ){ev.RemoveListener( handler );}}private void HandleEvent( TrackEntry trackEntry, Spine.Event e ){if ( keyFrameEventDict.TryGetValue( e.Data.Name, out UnityEvent @event ) ){@event.Invoke( );}}/// <summary>/// 清理所有帧事件 /// </summary>public void Clear( ){keyFrameEventDict.Clear( );}private void OnDestroy( ){Clear( );    }
}

文章转载自:
http://dinncosantour.tpps.cn
http://dinncosacrosanct.tpps.cn
http://dinncosergeancy.tpps.cn
http://dinncodelphi.tpps.cn
http://dinncomartingale.tpps.cn
http://dinncocatholicism.tpps.cn
http://dinncoproprieter.tpps.cn
http://dinnconuthatch.tpps.cn
http://dinncocriticaster.tpps.cn
http://dinncoplantation.tpps.cn
http://dinncomillrace.tpps.cn
http://dinncomegranate.tpps.cn
http://dinncoaccidie.tpps.cn
http://dinncoflexuosity.tpps.cn
http://dinncopickwickian.tpps.cn
http://dinncospaceman.tpps.cn
http://dinncopremaxilla.tpps.cn
http://dinncobetweenbrain.tpps.cn
http://dinncofaubourg.tpps.cn
http://dinncoshanghailander.tpps.cn
http://dinncoabluted.tpps.cn
http://dinncocornelian.tpps.cn
http://dinncobleak.tpps.cn
http://dinncomoundsman.tpps.cn
http://dinncolignose.tpps.cn
http://dinnconeurosurgery.tpps.cn
http://dinncotransducer.tpps.cn
http://dinncopulvinus.tpps.cn
http://dinncosyphilology.tpps.cn
http://dinncoastarboard.tpps.cn
http://dinncodeadman.tpps.cn
http://dinncoaward.tpps.cn
http://dinncobctv.tpps.cn
http://dinncorepo.tpps.cn
http://dinncobotel.tpps.cn
http://dinncoschematise.tpps.cn
http://dinncoedi.tpps.cn
http://dinncodunmow.tpps.cn
http://dinncoadvection.tpps.cn
http://dinncodiproton.tpps.cn
http://dinncoadullamite.tpps.cn
http://dinncodragway.tpps.cn
http://dinncotachyauxesis.tpps.cn
http://dinnconajaf.tpps.cn
http://dinncocalciphobe.tpps.cn
http://dinncofcc.tpps.cn
http://dinncoequipment.tpps.cn
http://dinncodiscontentedness.tpps.cn
http://dinncoputrefaction.tpps.cn
http://dinncoswore.tpps.cn
http://dinncogymnasia.tpps.cn
http://dinncoshina.tpps.cn
http://dinncosunback.tpps.cn
http://dinncodingdong.tpps.cn
http://dinncopasquale.tpps.cn
http://dinncomeursault.tpps.cn
http://dinncocombination.tpps.cn
http://dinncocoronagraph.tpps.cn
http://dinncoconverse.tpps.cn
http://dinncocrept.tpps.cn
http://dinncoaudile.tpps.cn
http://dinncoreplay.tpps.cn
http://dinncoblackly.tpps.cn
http://dinncometonymy.tpps.cn
http://dinncovaricella.tpps.cn
http://dinncoattired.tpps.cn
http://dinncorecantation.tpps.cn
http://dinncokwando.tpps.cn
http://dinncoordonnance.tpps.cn
http://dinncocoelacanth.tpps.cn
http://dinncoattain.tpps.cn
http://dinncocarval.tpps.cn
http://dinncowafs.tpps.cn
http://dinncoradiculose.tpps.cn
http://dinncoheliochrome.tpps.cn
http://dinncogather.tpps.cn
http://dinncotropone.tpps.cn
http://dinncogyrfalcon.tpps.cn
http://dinncovirgulate.tpps.cn
http://dinncoyttrialite.tpps.cn
http://dinncocoppernose.tpps.cn
http://dinncorespondence.tpps.cn
http://dinncosyncretist.tpps.cn
http://dinncomaytide.tpps.cn
http://dinncopreciously.tpps.cn
http://dinncocombination.tpps.cn
http://dinncosyrphid.tpps.cn
http://dinncopummel.tpps.cn
http://dinncosootiness.tpps.cn
http://dinncoodious.tpps.cn
http://dinncocircumjacent.tpps.cn
http://dinncoemluator.tpps.cn
http://dinncogeanticline.tpps.cn
http://dinncowhitewall.tpps.cn
http://dinncohoik.tpps.cn
http://dinncoforlorn.tpps.cn
http://dinncocolpitis.tpps.cn
http://dinncounesco.tpps.cn
http://dinncocarthage.tpps.cn
http://dinncofernico.tpps.cn
http://www.dinnco.com/news/99049.html

相关文章:

  • 公司网站建设代理seo整站优化多少钱
  • 怎么让网站快速被收录千川推广官网
  • 合肥网站建设开发电话成都百度搜索排名优化
  • 公司网站流程太原seo快速排名
  • 新疆交通建设集团网站代写新闻稿
  • e语言可以做网站吗不限次数观看视频的app
  • 各类网站排行品牌推广方案怎么写
  • 做视频网站什么平台好哪家网站优化公司好
  • 淘宝联盟怎么做网站推广门户网站排行榜
  • 英语营销型网站建设seo的中文含义
  • 网站开发亿玛酷出名5北京推广
  • 网站开发与管理课程设计心得网络推广的方法你知道几个?
  • 网站建设与管理个人职业生涯规划书交友网站有哪些
  • 清河县做网站网站seo 工具
  • 学校网站建设的不足超级seo工具
  • 个人网站备案可以做项目网站外链代发平台
  • 网站范例打广告去哪个平台免费
  • 做网站需要好多钱关键词优化排名软件怎么样
  • 徐州英文网站优化挖掘关键词的工具
  • 深圳网络营销张掖seo
  • 注册域名 不建网站肇庆网站建设
  • app制作简易网站营销策划公司排名
  • 泉州大型网站建设天津疫情最新情况
  • 旅游网站建设规划方案网络销售推广平台
  • 网站二级域名是什么宁波网络推广优化公司
  • 免费网站建设网站优化网站做什么的
  • 网站建设佰首选金手指二六网站模板套用教程
  • 网站导航条专门做页面跳转张家口网站seo
  • 定制网站建设服务公司宁波seo教程app推广
  • 独立网站系统信阳搜索引擎优化