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

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

1771. 动画节点 · LayaAir3.4 · 引擎文档 · LAYABOX [ 77%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 this.ani.autoPlay = true; //开启自动播放 this.ani.wrapMode = 0; //播放模式为正序播放模式(POSITIVE) this.ani.interval = 50; //动画...

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

1772. Laya3d如何优化DrawCall,提高渲染性能? [ 77%]

... 源 赞同来自:   __proto._initStaticBatchs=function(rootOwner){   this._quickSort(this._initBatchSprites,0,this._initBatchSprites.length-1);  …… } 这个函数的第一行的这个排序有问题,把它注释掉就可以把drawcall降成1。 感觉上并木有什么优化效果 2018-12...

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

1773. 高级应用-基于物理渲染 [ 77%]

...eeDimen/scene/PBRScene/Demo.ls")); scene.once(Laya.Event.HIERARCHY_LOADED, this, function () { var camera = scene.getChildByName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.scre...

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

1774. 物理碰撞脚本和触发器脚本(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 77%]

...接越过 */ public onTriggerEnter(other:Laya.PhysicsComponent):void { ((this.owner as Laya.MeshSprite3D).meshRenderer.sharedMaterial as BlinnPhongMaterial).albedoColor = new Laya.Vector4(0.0, 1.0, 0.0, 1.0); } /** * 当其他碰撞器进入绑定物体碰撞器后逐帧触发(子弹在物品内...

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

1775. playByFrame动画监听问题,真不会了。就一个小问题。监听不到动画结束。。。 [ 77%]

...?应该怎么用求教啊。。。。。 Laya.stage.on(Laya.Event.CLICK, this, function () {                 for (var i = 0; i < _outHitAllInfo.length; i++) {                     var name=_outHitAllInfo<em>.sprite3D.name;                     if(name=='anifish')...

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

1776. ui list 里面的元素不能点击两次 [ 77%]

...不能点击两次 你好,咱们list list.selectHandler = new Handler(this, onSelect); 只能获取一次点击事件么? 如何修改才能让list里面的元素 可以被连续点击?  附件 : --> 2016-12-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

1777. loadLib("libs/laya.device.js"); native上会随机宕 [ 77%]

...& (detroyChildren=true);         _super.prototype.destroy.call(this,detroyChildren);         // native会崩溃         // this.videoElement.removeEventListener("abort",Video.onAbort);         // this.videoElement.removeEventListener("canplay",Video.onCanplay);oy...

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

1778. 按钮交互实现 [ 77%]

...的按钮变量进行设置点击事件 var gameOver = new GameOverUI(); this.SceneMajor.addChild(gameOver); gameOver.btRetry.on('click', this, function(){ window.location.reload(); });当然因为按钮都是小元素, 默认情况下会被打包成atlas文件 需要在代码执行前先下载完...

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

1779. [LayaAir3]3.3.2与设置组件灰显相关的 Bug 和 Crash [ 77%]

...r: Laya.Animator2D, layerindex: number, playstate: Laya.AnimatorState2D) { this.playStateInfo.animator = animator; this.playStateInfo.layerindex = layerindex; this.playStateInfo.playState = playstate; } /** * 动画状态运行中 * @param normalizeTime 0-1动画播放状态 */ onStateUpdate(normali...

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

1780. TiledMap销毁的问题,TiledMap销毁后屏幕变灰,不能显示 [ 77%]

...有属性 */ public function clearAll():void { if (_map) { _map = null; } this.visible = false; //aniSpriteArray为空的时候,导致自己没有被销毁,直接return了 if (aniSpriteArray == null) { return; } var tAniSprite:TileAniSprite; for (var i:int = 0; i < aniSpriteArray.length; i++)...

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