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

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

81. 物理Bodies绑定Laya.Sprite [ 80%]

...idth"; // 宽度不变 this.engine; var world; this.engine = Matter.Engine.create({ enableSleeping: true // 开启睡眠 }); world = this.engine.world; Matter.Engine.run(this.engine); // Engine 启动 var render = LayaRender.create({ engine: this.engine, options: { wireframes: false, background: "#0...

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

82. laya.device.media.HtmlVideo_API3.0 [ 80%]

...y Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event getVideo hasListener isCreateFromURL off offAll offAllCaller on once setSource create destroyUnusedResources Constructors constructor new HtmlVideo(): HtmlVideo Overrides Bitmap.__constru...

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

83. 添加组件PhysicsCollider 时报 Cannot read property 'btCollisionObject' of undefined [ 80%]

...加载完运行过回调函数以后再进行。如下句 : Laya.loader.create( MyResouces.arrResources, Handler.create(this,onLoadComplete) ); 意为加载完MyResouces.arrResources这些资源后调用方法onLoadComplete,添加碰撞盒子需要在onLoadComplete里或者onLoadComplete运行...

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

84. 关于laya图片资源缓存的问题 增量更新文件缓存 [ 80%]

..., {read: false}).pipe(clean()) }) /** 创建文件hash清单 */ gulp.task('create:hash',['clean'], () => { return gulp.src([ './server/static/**/*.atlas', './server/static/**/*.png', './server/static/**/*.mp3' ]) .pipe(hash({ template: '<%= name %><%= ext %>?version=<%= hash %>'...

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

85. Tween回调方法里如何带参数? [ 80%]

...如何带参数? Tween.to(sp, {x:_x, y:_y, alpha:1}, 1000, null, Handler.create(This, function(){     sp.destroy(); }), 500); 这样写sp并不能被销毁,请问laya里沒有onCompleteParams方法吗? 2017-06-08 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

86. 定时器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 79%]

...: Function, args: any[] = null, coverBefore: boolean = true): void { this._create(true, false, delay, caller, method, args, coverBefore); } 使用示例如下: const { regClass } = Laya; import { RuntimeScriptBase } from "./RuntimeScript.generated"; @regClass() export class RuntimeScript extends R...

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

87. 3d特效克隆时,在手机会现卡顿情况,特效资源已经提前在加载 [ 79%]

...  }                                  Laya.loader.create(_path, Handler.create(this,OnComplete,null),null,null,null,1,true,groupName);                                  }else{                                  var item:Sprite3D = ...

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

88. laya.utils.Color [ 79%]

...:*) 根据指定的属性值,创建一个 Color 类的实例。 Color  create(str:*):Color[static] 根据指定的属性值,创建并返回一个 Color 类的实例。 ColorProperty Detail_drawStylepropertypublic var _drawStyle:*numColorproperty public var numColor:uint uint 型颜色值。st...

来源: laya_api 发布时间: 20170422

89. tween 函数的单次执行任务数量问题 [ 79%]

...// "scaleX": 0,              // "scaleY": 0 },550,null,Handler.create(this,this.skillEffecting)); 如代码所示,如果写了四个需要变化的属性,前两个不会执行,只有后面的会执行。 分两个tween 写也是这样,是有什么不对的么?还是单次只能...

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

90. laya.d3.graphics.VertexBuffer3D [ 79%]

...) 创建一个 VertexBuffer3D,不建议开发者使用并用VertexBuffer3D.create()代替 实例。 VertexBuffer3D  bind():Boolean[override] VertexBuffer3D  destroy():void[override] VertexBuffer3D  getData():* 获取顶点数据。 VertexBuffer3D  setData(data:*, bufferOffset:int = 0, dataSt...

来源: Laya2.0_api 发布时间: 20190513