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

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

531. 2D精灵光 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...olor(1, 1, 1); spritelightComponent.intensity = 0.5; let tex = Laya.loader.getRes("resources/spritelight.png"); spritelightComponent.spriteTexture = tex; } // 配置方向光 setDirectLight(): void { let directlithtComponent = this.directLight.getComponent(Laya.DirectionLight2D); directlithtComponen...

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

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

...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

533. 关于创建Sprite获取大小 [ 44%]

...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

534. 小游戏子域程序加载到图集后,取图集内资源报错。 [ 44%]

...(url:String):void { if(!MiniAdpter.isZiYu) { var atlasJson:Object = Loader.getRes(URL.formatURL(url)); if(atlasJson) { var textureArr:Array = (atlasJson.meta.image as String).split(","); //构造加载图片信息 if (atlasJson.meta && atlasJson.meta.image) { //带图片信息的类型 var t...

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

535. 手机QQ厘米秀GLTF模型使用说明(TypeScript-小游戏适配文档-QQ小游戏) [ 44%]

...y 中使用默认骨骼导出动画数据 var clip: AnimationClip = Loader.getRes("res/gltfMode/Aniamtor/dalaozuo-dalaozuo.lani"); if (!clip) return; var layer: AnimatorControllerLayer = new AnimatorControllerLayer("test"); var animatorState: AnimatorState = new AnimatorState(); animatorState.clip =...

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

536. 请问laya有没有类似翻页容器(pageView)的组件? [ 44%]

...nfo = cell.getChildByName("text_des") as Laya.Text; let i18n = Laya.loader.getRes("config/i18n.json"); text_info.text = i18n[`tips_text$text_i18n$${1101 + index}`][ConfigInfo.lang] } public setCurPage(index: number) { if (this.m_index != index) { for (let i = 1; i < 7; i++) { let skin = "ui/round...

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

537. laya.ani.AnimationTemplet_API3.0 [ 44%]

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

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

538. 帮忙看看Texture类getPixels内存泄漏的问题。 [ 44%]

...oadImageHandler():void { _colorSpr = new Sprite(); _colorTex = Laya.loader.getRes("assets/images/color1.png"); _colorSpr.graphics.drawTexture(_colorTex); _colorSpr.cacheAs = "bitmap"; _colorSpr.pos((1024 - _colorTex.width) >> 1, (768 - _colorTex.height) >> 1); _colorSpr.size(_colorTex.wi...

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

539. 2.0 添加场景雾之后 粒子特效离原点越远 效果越淡 [ 44%]

...码添加场景雾:   //添加3D场景 GamePanel.curScene = Laya.loader.getRes("res/LayaScene_wu/Conventional/wu.ls"); Laya.stage.addChildAt(GamePanel.curScene, 0); //开启雾化效果 GamePanel.curScene.enableFog = true; //设置雾化的颜色 GamePanel.curScene.fogColor = new Laya.Vector3(0.59,...

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

540. Spine动画资源加载时不能同时使用"版本管理"和"URL.basePath" [ 44%]

...){ if (this._isDestroyed){ this.destroy(); return; }; var tSkBuffer=Loader.getRes(this._skBufferUrl); if (!tSkBuffer){ this.event(/*laya.events.Event.ERROR*/"error","load failed:"+this._skBufferUrl); return; } //MODIFIED:使用formatPath进行路径过滤 this._path=this.formatPath(this._skBufferUrl...

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