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

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

1521. oppo CanvasRenderingContext2D 并没有实现 drawImage;报错; [ 46%]

...置之后纹理宽高可能会发生变化。 */ __proto.loadImageSource=function(source,premultiplyAlpha){ (premultiplyAlpha===void 0)&& (premultiplyAlpha=false); var width=source.width; var height=source.height; this._width=width; this._height=height; this._setWarpMode(/*laya.webgl.WebGLCo...

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

1522. laya.d3.core.particleshuriken.module.GradientColor_API3.0 [ 46%]

...RandomTwoConstant createByRandomTwoGradient Legend Object literal Variable Function Type alias Class Class with type parameter Constructor Method Enumeration Interface Static method

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

1523. laya.d3.core.material.WaterPrimaryMaterial_API3.0 [ 46%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

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

1524. LayaAir 寻路库,寻路路径错误 [ 46%]

...------------------------------------------------------------------- public function Grid(width_or_matrix:*, height:int, matrix:Array = null) 虽然as3不支持多个构造函数,但是也没必要用这种解决方法吧,包括Grid构造函数初始化的代码简直绕晕了 附件 : --> Astar....

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

1525. socket大型项目回调 [ 46%]

...hakeCallback:any = null; private handshakeBuffer:any; private initCallback:Function = null; private _callbacks:any = {}; private reqId:number = 0; private _package:IPackage; private _message:IMessage; constructor(){ if(!console.group){ console.group = console.log; console.groupEnd = function(){conso...

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

1526. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 46%]

...频都不显示了。     下面是 创建视频的主要代码 private function initVideo():void { // TODO Auto Generated method stub // 创建Video元素 var div:* = Browser.createElement("div"); div.setAttribute("id", "videobox"); Browser.document.body.appendChild(div); // var canvas:* = Brows...

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

1527. laya.d3.core.material.SkyProceduralMaterial_API3.0 [ 46%]

...建 Parameters url: string Returns boolean off off(type: string, listener: Function): EventDispatcher off(type: string, caller: any, listener?: Function, args?: any[]): EventDispatcher Inherited from EventDispatcher.off Defined in laya/events/EventDispatcher.ts:112 从 EventDispatcher 对象中删...

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

1528. config.jsh中无法使用confirm [ 46%]

...-2 浪货界扛把子 • 2018-01-16 12:04 @Monica: window.onLayaInitError=function(e) { console.log("onLayaInitError error=" + e); // alert("加载游戏失败,可能由于您的网络不稳定,请退出重进"); var Test=Laya.PlatformClass.createClass("com.ygames.buyug...

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

1529. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

... 监听下载过程中的 progress 事件 xhr.addEventListener('progress', function (event: any) { if (event.lengthComputable) { // 计算下载的百分比 var percent = (event.loaded / event.total) * 100; console.log('下载进度: ' + percent.toFixed(2) + '%'); } }); // 设置请求完成后的...

来源: Laya3.0_文档 发布时间: 20251010

1530. LayaAirID 打包app测试 apk无法开启webgl。用浏览器扫码进入就没问题 [ 46%]

...的。 /** *指定显示对象 *@param index */ __proto.showDisplayByIndex=function(index){ if (this._replaceDic[index]) index=this._replaceDic[index]; if (this.currSlotData && index >-1 && index < this.currSlotData.displayArr.length){ this.displayIndex=index; this.currDisplayD...

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