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

大约有 215 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0041 秒)

91. 组件Clip(play方法的bug) [ 66%]

组件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

92. 微信小游戏自定义震动效果 [ 66%]

...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

93. 1.7.19.1 beta 背景音乐在舞台失焦和静音状态下可能导致的无法播放的异常问题! [ 66%]

...减,少则补足,请官方酌情修复此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

94. 针对2.0.0 beta5 setLoadingPage 做增强 [ 65%]

...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

95. laya.media.SoundManager_API3.0 [ 65%]

...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

96. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 65%]

...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

97. Panel滚动条滑块位于最下方 [ 64%]

... 设置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

98. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 64%]

...建出符合自己需要的进度条。 **示例代码:** ```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

99. 请问怎么制作一个layabox js版本的加载效果 [ 64%]

...2-31 0 0 分享 微博 QZONE 微信 gaowei2024 赞同来自: var Loadings=(function(_super) { function Loadings(){ Loadings.super(this); var Stage = Laya.Stage; var ProgressBar = Laya.ProgressBar; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var progressBar; Laya.init(1024, 600,WebGL); Laya.s...

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

100. laya.device.media.Video [ 64%]

...是否支持播放指定格式视频。 Video clearTimer(caller:*, method:Function):void 清理定时器。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node customRender(context:RenderContext, x:Number, y:Number):void...

来源: laya_api 发布时间: 20170929