• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,800 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0075 秒)

521. 关于下拉列表的选择触发 [ 69%]

关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....

来源: Laya_社区 发布时间: 20180719

522. 二次开发 异步回调没反应 [ 69%]

...没反应 ts: /**视频广告 */ public static showVideoAd(success: Laya.Handler, type: string): void { if (GameConfig.ins.isDev) { success.runWith(1); return; } var VGUtil = Laya.PlatformClass.createClass("com.szdn.game.fkzy.VGUtil"); VGUtil.callWithBack(back, "showVideoAd", type);  function back(...

来源: Laya_社区 发布时间: 20190524

523. 有没有js版本Tween clear相关的demo?? [ 69%]

...tTween1 = Laya.Tween.to(this.spFetch, { rotation: -170 }, 3000, null, Laya.Handler.create(this, this.leftToRight2)) } leftToRight2(){ Laya.Tween.clear(this.leftToRightTween2); this.leftToRightTween2 = Laya.Tween.to(this.spFetch, { rotation: -10 }, 3000,null, Laya.Handler.create(this, this.leftToRigh...

来源: Laya_社区 发布时间: 20180122

524. 再问:tween对象的回收利用 [ 69%]

...props 变化的属性列表,比如{x:100,y:20,ease:Ease.backOut,complete:Handler.create(this,onComplete),update:new Handler(this,onComplete)}。 * @param duration 花费的时间,单位毫秒。 * @param ease 缓动类型,默认为匀速运动。 * @param complete 结束回调函数。 * @para...

来源: Laya_社区 发布时间: 20161205

525. 动画-新版骨骼动画 [ 69%]

...teIndex = 0; Laya.loader.load(["../../res/threeDimen/ui/button.png"], Laya.Handler.create(null, function () { changeActionButton = Laya.stage.addChild(new Laya.Button("../../res/threeDimen/ui/button.png", "切换动作")); changeActionButton.size(160, 40); changeActionButton.labelBold = true; change...

来源: Laya_示例 发布时间: 20260820

526. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 69%]

...aya.loader.load(["res/background.png", "res/m_background.png"], laya.utils.Handler.create(this, onLoaded), laya.utils.Handler.create(this, onLoading, null, false)); //加载进度 function onLoading(progress){ console.log("onLoading: " + progress); } //加载完毕 function onLoaded(){ console.log("...

来源: Laya_社区 发布时间: 20160722

527. Clip属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 69%]

... = Laya.Button; import Clip = Laya.Clip; import Image = Laya.Image; import Handler = Laya.Handler; import WebGL = Laya.WebGL; export class UI_Clip { private buttonSkin: string = "res/ui/button-7.png"; private clipSkin: string = "res/ui/num0-9.png"; private bgSkin: string = "res/ui/coutDown.png"; pri...

来源: Laya2.0_文档 发布时间: 20210714

528. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 69%]

...et = Laya.Templet; var Event = Laya.Event; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var mFactory; var mArmature; (function () { Laya.init(Browser.width, Browser.height, WebGL); startFun(); })(); function startFun() { mFactory = new Templet(); mFactory.on(Event....

来源: Laya_社区 发布时间: 20170830

529. laya.net.ResourceVersion_API3.0 [ 69%]

...化后的新路径。 Static enable enable(manifestFile: string, callback: Handler, type?: number): void Defined in laya/net/ResourceVersion.ts:26 启用资源版本管理。 由于只有发布版本需要资源管理。因此没有资源管理文件时,可以设置manifestFile为null或者不存...

来源: Laya3.0_api 发布时间: 20231102

530. 图片遮罩大小跟设置不一致 [ 69%]

...= Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL   = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH...

来源: Laya_社区 发布时间: 20171220