大约有 218 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0040 秒)
Laya_社区(141) Laya3.0_api(21) laya_api(14) Laya2.0_api(14) Laya2.0_文档(11) Laya3.0_文档(6) Laya_示例(6) Laya2.0_示例(5)
...解这个判断的具体含义。 下面贴上实例中的完整代码: (function() { var Sprite = Laya.Sprite; var Text = Laya.Text; var WebGL = Laya.WebGL; var flag; (function() { Laya.init(1136, 640, WebGL)...
来源: Laya_社区 发布时间: 20170510
组件Clip(play方法的bug) __proto.play=function(from,to){ (from===void 0)&& (from=0); (to===void 0)&& (to=-1); this._isPlaying=true; this.index=from; this._toIndex=to; this._index++;//源码这里没必要吧 2018-11-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20181130
...E 语言:TS 代码: /** * 震动时间 * @param time 毫秒数 */ function vibrate(time: number) { let count = time / 15; let index = 0; let obj = { count: count, index: index }; Laya.timer.loop(16, obj, function () { wx.vi...
来源: Laya_社区 发布时间: 20190401
...减,少则补足,请官方酌情修复此bug!SoundManager.playSound=function(url,loops,complete,soundClass,startTime){ (loops===void 0)&& (loops=1); (startTime===void 0)&& (startTime=0); // if (!SoundManager._isActive || !url)return null; if (!url)return null; if (SoundManager....
来源: Laya_社区 发布时间: 20180709
...eoTexture.element.load(); videoTexture["_video"] = videoTexture.element; } function playVideo(){ //这里就做一些video的参数设置,比如静音、循环、播放等设置即可 //video.muted = this._muted; //video.loop = this._loop; //video.onended = this._onended; //video.onclose = this._o...
来源: Laya_社区 发布时间: 20250908
...e((resolve, reject) => { Laya.Scene.load(url, Laya.Handler.create(this, function (scene) { // setLoadingPage为null 是为了避免引擎加载完场景自动关闭loadingPage Laya.Scene.setLoadingPage(null) resolve(scene) }), progress) }) } _promiseHandler() { return new Promise((resolve, reject...
来源: Laya_社区 发布时间: 20181124
...me stopAll stopAllSound stopMusic stopSound Legend Object literal Variable Function Type alias Class Class with type parameter Static property Static method Enumeration Interface
来源: Laya3.0_api 发布时间: 20231115
...aya.display.Stage; import laya.webgl.WebGL; public class testlaya { public function testlaya() { Laya.init(100, 100, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.bgColor = "#ffffff"; new A(); } } }package { import laya.utils.Handler; public class...
来源: Laya_社区 发布时间: 20170330
... 设置panel.vscrollBar.value=panel.vscrollBar.max 完毕 示例:public function Main() { Laya.init(1240,800,WebGL); Laya.stage.bgColor="#EEFFCC"; Laya.loader.load([{url:"res/atlas/comp.json",type:Loader.ATLAS},{url:"bg2.png"}],Handler.create(this,onCom)); } private function onCom():void { var img...
来源: Laya_社区 发布时间: 20161103
...建出符合自己需要的进度条。 **示例代码:** ```javascript (function() { var Stage = Laya.Stage; var ProgressBar = Laya.ProgressBar; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var progressBar; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL);...
来源: Laya2.0_文档 发布时间: 20210715