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

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

1391. putimagedata 不起作用 [ 48%]

...使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); Laya.stage.addChild(ape); ape.pos(200, 0); data = Laya.Browser.context.getImageData(...

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

1392. [LayaAir3]3.2spine动画和3.0.8效果不一样 [ 48%]

...f8.js:1 8The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. <URL> Scene.ts:402 Error loading Loading.ls: Error: unknown type 'xmaaYG8AQ1yC07pr_JvyPA' (anonymous) @ Scene.ts:402 Promise.then (async) load @ Scene.ts:395 open @ Scene.ts:44...

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

1393. 多摄像机窗口的使用(TypeScript-3D基础(TS)-LayaAir3D之Camera) [ 48%]

...e3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(null, function(sp) { //将模型加到场景上 var layaMonkey = scene.addChild(sp); })) ``` 编译运行上述代码,运行效果如图6。开发者们同时也可以测试,在单摄像机下时,DrawCall与三...

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

1394. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 48%]

...e(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL(svg); img.src = url; img.style.position ="absolute"; img.style.zIndex = 99999 document.body.appendChild(img); ``` 怎么运行上边这段代码呢?打开谷歌浏览器,随便打开一个空白网页,F1...

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

1395. laya.d3.math.Native.ConchQuaternion [ 48%]

...ConchQuaternion  cloneTo(destObject:*):void 克隆。 ConchQuaternion  createFromAxisAngle(axis:ConchVector3, rad:Number, out:ConchQuaternion):void[static] 从指定的轴和角度计算四元数 ConchQuaternion  createFromMatrix3x3(sou:Matrix3x3, out:ConchQuaternion):void[static] 根据3x3矩...

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

1396. 模型的功能介绍(ActionScript-3D基础(AS3)-LayaAir3D之模型和网格) [ 48%]

...时进行完成事件监听。在这个demo中事先使用了 `Laya.loader.create`来预加载资源。 在游戏中,我们经常打造角色换装系统,有时是换模型,有时是换贴图,有时候两者都换。因为材质贴图部分在后续章节中才讲解,因此本章节中我...

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

1397. 提示资源重复加载 [ 47%]

...s.init(); this.swimpoolani.loadAtlas("./res/atlas/Comp.atlas",Laya.Handler.create(this,this.onLoaded));   } private onLoaded():void{   Laya.Animation.createFrames([swimpoorpath01,swimpoorpath02],"swimpoolani"); Laya.stage.addChild(this.swimpoolani); this.swimpoolani.play(0,true,"swimpoolani"); thi...

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

1398. 在加载3d人物的时候,Laya.timer.loop会卡顿,由于又需要每隔一段时间执行一个方法,暂时想到了用Laya.timer.loop,这个有什么好的解决方案替代吗? [ 47%]

...rgs:Array = null, coverBefore:Boolean = true):void {             _create(true, true, delay, caller, method, args, coverBefore);         } 2018-04-09 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 RayFor24 相关问题 两...

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

1399. 纹理集包含多个动作的时候按照技术文档写出来的不能正常播放呢? [ 47%]

...omplete():void {     //创建动画模板dizziness      //Animation.createFrames(aniUrls("zy/" + stand + "000", 5), stand + "000");//这么写也不对      Animation.createFrames(aniUrls(stand + "000", 5), stand + "000");     Laya.stage.addChild(roleAni);     roleAni.interval = 12...

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

1400. laya2.7.3 Cannon物理设置了ColliderShape的localOffset属性 并 isKinematic=true时模型会匀速移动 [ 47%]

...------ 完整重现代码如下: Laya3D.init(720, 1280, null, Laya.Handler.create(null, () => { Config3D.useCannonPhysics = true; Laya.stage.scaleMode = "fixedwidth"; Laya.stage.screenMode = "none"; Laya.stage.alignV = "top"; Laya.stage.alignH = "left";  let scene = Laya.stage.addChild(new Laya....

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