大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0152 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...请问纯代码怎么实现场景创建激活,谢谢? const scene = new Laya.Scene(); scene.onOpened = () => { console.log('scene onOpened'); }; scene.open(); console.log('scene', scene.active, scene.activeInHierarchy); Laya.timer.frameOnce(10, this, () => { console.log('scene 2', sc...
来源: Laya_社区 发布时间: 20190218
...load("res/atlas/comp/skeleton.atlas"); //创建动画模板 this.templet = new Laya.Templet(); this.templet.on(Laya.Event.COMPLETE, this, this.parseComplete); this.templet.on(Laya.Event.ERROR, this, this.onError); this.templet.loadAni("comp/skeleton/spineboy.sk"); } protected onExit() {}; private on...
来源: Laya_社区 发布时间: 20180905
...官方没反应了吗? 还有最近更新的laya,排行榜不能直接new Texture(canvas)了。会报bitmap.什么东西错误。。换回旧版laya不没问题。 官方都不测试的吗?我晕 186*****690 • 2018-08-11 12:25 刚才测试,结果是发布时不压缩混淆js,在机器上...
来源: Laya_社区 发布时间: 20180802
...博 QZONE 微信 xiaoqi 赞同来自: meshRender.material.tilingOffset = new Laya.Vector4() 2018-08-04 0 0 分享 微博 QZONE 微信 150*****372 赞同来自: 解决了么,我设置了wrapModeU和wrapModeV,并且确保了加载出来的texture2D,还是无法平铺,而使用官方的那个...
来源: Laya_社区 发布时间: 20180720
...叠 要回复问题请先登录 发起人 王刚 相关问题 两个对象new了一个相同的对象,调用第一个的一个方法,走进了第二方法里 请问LayaAir中如何使图片以圆形的方式显示? 请问有没有方法能够获取“鼠标是否处于按下状态”? 请问...
来源: Laya_社区 发布时间: 20180426
...__proto._onAdded=function(){ var physics3D=Laya3D._physics3D; var btColObj=new physics3D.btCollisionObject(); btColObj.setUserIndex(this.id); btColObj.forceActivationState(5); var flags=btColObj.getCollisionFlags(); if ((this.owner).isStatic){ if ((flags & 2)> 0) flags=flags ^ 2; flags=flags ...
来源: Laya_社区 发布时间: 20190321
...ew.getWidth(), view.getHeight(), Bitmap.Config.ARGB_8888); Canvas canvas = new Canvas(bitmap); view.draw(canvas); 但并不能截到Window下的layaView(出laya外的其他部分可以截到,另外注意我写了个Android项目自测,放上Android的原生组件都是可以截到。) 麻烦官...
来源: Laya_社区 发布时间: 20180925
...eSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.createSphere(0.1), new Vector3(0, 0.2, 0.5), scene); sphereSprite.meshRenderer.castShadow = true; sphereSprite.meshRenderer.receiveShadow = true; ``` 然后来看下效果。 (图1)
来源: Laya2.0_文档 发布时间: 20210715
... clone cloneTo destroy updateLocalTransformations Constructors constructor new StaticPlaneColliderShape(normal: Vector3, offset: number): StaticPlaneColliderShape Overrides ColliderShape.constructor Defined in laya/d3/physics/shape/StaticPlaneColliderShape.ts:22 创建一个新的 StaticPlaneCollide...
来源: Laya3.0_api 发布时间: 20231115
... 三、避免重复对象引用。尽可能要去用对象池,不要总new 对象。 四、多次实例对象引用的时候,要先把实例赋到变量里,再从变量中引用。还是引用问题,避免多次引用,和交替引用。 五、其它内存回收销毁的原则,养成时...
来源: Laya_社区 发布时间: 20151102