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

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

581. laya.d3.shader.Shader3D [ 50%]

...取子着色器。 Shader3D  propertyNameToID(name:String):int[static] 通过Shader属性名称获得唯一ID。 Shader3DPublic Constants ConstantDefined By  PERIOD_CAMERA : int = 3[static] shader变量提交周期,逐相机。Shader3D  PERIOD_CUSTOM : int = 0[static] shader变量提交周...

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

582. laya.display.Node [ 50%]

...runCallLater(method:Function):void 如果有需要延迟调用的函数(通过 callLater 函数设置),则立即执行延迟调用函数。 Node  setChildIndex(node:Node, index:int):Node 设置子节点的索引位置。 Node  timerLoop(delay:int, caller:*, method:Function, args:Array = nu...

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

583. 如何实现点击列表时,点击item中的按钮有事件,点击item其他位置没有事件,目前只能实现点击list里的item组件进行事件监听,没办法实现监听item中的button [ 50%]

...件单独设置事件,比如你在renderHandler渲染组件的时候,通过item拿到item里面的特定组件,然后加事件这里就不用说了,应该了解了!比如代码 方法一: function renderHandler(item:box,index:int):void { var button:Button = item.getChildByName("buton") a...

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

584. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 49%]

...的资源,如内存、纹理等,以避免内存泄漏和资源浪费。通过合理利用这些生命周期方法,开发者能够更好地管理游戏对象的状态和行为,提高游戏的性能和稳定性。 2.1 全部的生命周期方法列表 全部的生命周期方法如下面列表...

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

585. laya.d3.math.Quaternion [ 49%]

...ernion  rotationMatrix(matrix3x3:Matrix3x3, out:Quaternion):void[static] 通过一个3x3矩阵创建一个四元数 Quaternion  scaling(scaling:Number, out:Quaternion):void 根据缩放值缩放四元数 Quaternion  slerp(left:Quaternion, right:Quaternion, t:Number, out:Quaternion):Float32Arra...

来源: laya_api 发布时间: 20170929

586. 发布h5项目,在浏览器上初始加载资源过多导致卡顿怎么优化 [ 49%]

...卓设备加载场景黑屏 iphone自带浏览器页面怎么锁定 如何通过命令行工具构建和发布项目 谷歌浏览器播放mp3出现The AudioContext was not allowed to start. 大量sprite如何优化性能 模型资源释放问题 2.2-2.3版本 ani动画,序列帧动画最后一帧...

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

587. Laya.Tween.to 用这个做缓动动效, 变动scale值有问题, [ 49%]

...rite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale 通过绘制纹理生成的图片,改变scale时会出现图片不绘制的情况 Laya.Tween.to scale如何实现图片不停地放大缩小? 3D游戏只能用SCALE_FULL吗? spine 连续两次scale操作会闪一下 音...

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

588. laya.ui.UIComponent_API3.0 [ 49%]

...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测...

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

589. 粒子-粒子演示1 [ 49%]

...load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 // let settings = Laya.loader.getRes(partPath); const Particle2D = Laya.Particle2D; // 创建 Particle2D 实例 let partIns = new Particle2D(settings); Laya.stage.addChild(partIns); // 开始发...

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

590. laya.ui.ViewStack_API3.0 [ 49%]

...想根据绘制内容获取宽高,可以设置本属性为true,或者通过getBounds方法获取。设置为true,对性能有一定影响。 hitTestPrior hitTestPrior: boolean = false Inherited from Text.hitTestPrior Defined in laya/display/Sprite.ts:273 指定鼠标事件检测是优先检测...

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