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

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

121. 3D场景销毁后,仍有引用存在,内存中场景及引用其的对象无法销毁 [ 61%]

...te(this, () => {              let item = Laya.loader.getRes("res/scene_Effect/Conventional/Effect_zhujue_attack.lh");             let tarItem = Laya.Sprite3D.instantiate(item);             this.scene.addChild(tarItem);             tarItem....

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

122. 关于创建Sprite获取大小 [ 61%]

...his, function () { _this.graphics.clear() var texture = window.Laya.loader.getRes(value.url) _this.graphics.drawTexture(texture) _this.scaleX = _this.set_width / texture.sourceWidth _this.pivotX = _this.row_data.property.x_m * texture.sourceWidth _this.pivotY = _this.row_data.property.y_m * texture....

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

123. 多scene3d报内存不足问题 [ 61%]

...ith -s ASSERTIONS=1 for more info.   代码: this.m_scene = Laya.loader.getRes(this.getScenePath()); new Laya.Scene3D() new Laya.Scene3D()   第三个new 就报错 内存已经设置到512M window['Config3D'] && (window['Config3D']['_default']['_defaultPhysicsMemory'] = 512); 附件 : --...

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

124. 鼠标交互-Hold [ 61%]

...猩 ape = new Sprite(); ape.loadImage(apePath); var texture = Laya.loader.getRes(apePath); ape.pivot(texture.width / 2, texture.height / 2); ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); ape.scale(0.8, 0.8); Laya.stage.addChild(ape); // 鼠标交互 ape.on(Event.MOUSE_DOWN, this, onApePress)...

来源: Laya_示例 发布时间: 20260106

125. 分享:Dragonbones/Spine的换肤操作 [ 61%]

... texture:Texture; private function onTextureLoaded():void { texture=Loader.getRes('head3.png'); }整体代码如下package { import laya.ani.bone.Skeleton; import laya.ani.bone.Templet; import laya.display.Sprite; import laya.display.Text; import laya.events.Event; import laya.net.Loader; import lay...

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

126. 1.7.8新版本3d骨骼动画如何获取绑点呢 [ 61%]

...ar ani:Animator; private var effectTemp:Sprite3D; effectTemp = Laya.loader.getRes("res/LayaScene_Fire/Fire.lh"); 先查到节点 for(var i:int = 0;i<ani._avatarNodes.length;i++) { if(AnimationNode(ani._avatarNodes[i]).name == "weaponEffect") { animationNodeTemp = ani._avatarNo...

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

127. 鼠标 MOUSE_DOWN Event 回来的信息不符合 [ 61%]

...mage(picturePath); Laya.stage.addChild(picture); var texture = Laya.loader.getRes(picturePath); picturePath.pivot(texture.width / 2, texture.height / 2); picture.x = Laya.stage.width / 2; picture.y = Laya.stage.height / 2; picture.scale(cardScaleValue, cardScaleValue, true); picture.on(Event.MOUSE_D...

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

128. 鼠标交互-Hold [ 60%]

...ape = new Sprite(); this.ape.loadImage(apePath); let texture = Laya.loader.getRes(apePath); this.ape.pivot(texture.width / 2, texture.height / 2); this.ape.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.ape.scale(0.8, 0.8); Laya.stage.addChild(this.ape); // 鼠标交互 this.ape.on(Event.MOU...

来源: Laya2.0_示例 发布时间: 20260106

129. laya.resource.VideoTexture_API3.0 [ 60%]

...ource.ts:139 如果设置一个已缓存的资源obsolute为true,则 1)getRes仍然可以返回这个资源; 2)下次加载时会忽略这个缓存而去重新加载。。 Returns boolean Inherited from Resource.obsolute Defined in laya/resource/Resource.ts:143 如果设置一个已缓存的...

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

130. 用Unity插件导出的模型渲染报错 [ 60%]

...lete)); private OnComplete():void { let sprite:Laya.Sprite3D = Laya.loader.getRes("model/role/1/model.lh"); this._scene.addChild(sprite); } 155*****924 • 2019-05-16 15:16 这样写应该没问题吧? 155*****924 • 2019-05-16 15:18 Utils3D._mulMatrixArray(this._cacheAnimationNode[inde...

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