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

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

501. UI-List [ 63%]

...g(cell.dataSource); } private onSelect(index: number): void { console.log("当前选择的索引:" + index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); t...

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

502. 老项目适配微信小游戏详解(TypeScript-小游戏适配文档-微信小游戏) [ 63%]

...信小游戏 #### 1、小游戏适配的前提准备 引擎与IDE要使用当前最新beta版或稳定版,LayaAirIDE从1.7.15beta版本开始,才支持老项目一键发布,所以用旧版本IDE和引擎库没升级的,别忘了先升级。 #### 2、 引用小游戏适配库 ##### TS与JS适...

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

503. list item 添加事件后无法监听 [ 62%]

...og("click")     }) }  function onSelect(index) {     console.log("当前选择的索引:" + index); } function createAPIList(api_list_view) {     let data = [];     for (let i = 0; i < 10; i++) {         let text_view = createTextView("12345", "black", 18, innerWidth, 3...

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

504. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 62%]

...关的链接 提交 1 个回复 cuixueying 赞同来自: interval是设置当前播放动画实例的帧速的,不是修改全局的,你可以参考下打飞机里面的做法,通过对动画的封装,传递参数来改变动画的interval值,这样不同的动画实例就可以拥有不同...

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

505. laya.ani.bone.BoneSlot_API3.0 [ 62%]

...urrSlotData currSlotData: SlotData Defined in laya/ani/bone/BoneSlot.ts:28 当前插槽对应的数据 currTexture currTexture: Texture | null Defined in laya/ani/bone/BoneSlot.ts:30 当前插槽显示的纹理 displayIndex displayIndex: number = -1 Defined in laya/ani/bone/BoneSlot.ts:35 显示皮...

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

506. laya.ani.bone.Skeleton [ 62%]

...。功能同Laya.timer.clearTimer()。 Node contains(node:Node):Boolean 当前容器是否包含指定的 Node 节点对象 。 Node customRender(context:Context, x:Number, y:Number):void 自定义更新、呈现显示对象。一般用来扩展渲染模式,请合理使用,可能会导致在...

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

507. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 62%]

...nectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce); //输出当前约束所受的力矩 console.log(this.fixedConstraint.currentTorque); } } onJointBreak() { console.log("break"); } ``` - 4.示例效果展...

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

508. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 62%]

...nectedBody.mass; this.fixedConstraint.connectedBody.mass = mass+1; //输出当前约束所受力 console.log(this.fixedConstraint.currentForce); //输出当前约束所受的力矩 console.log(this.fixedConstraint.currentTorque); } } onJointBreak() { console.log("break"); } ``` - 4.示例效果展...

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

509. laya.map.MapLayer [ 62%]

...象和UI的View组件默认为true。 Sprite  layerName : String = null当前Layer的名称MapLayer  _mapData : Array = nullMapLayer mask : Sprite 遮罩,可以设置一个对象(支持位图和矢量图),根据对象形状进行遮罩显示。 【注意】遮罩对象坐标系是相对遮...

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

510. laya.display.FrameAnimation [ 62%]

...内存开销,无需renderTarget支持。 Sprite count : int[read-only] 当前动画中帧的总数。 AnimationBase customRenderEnable : Boolean[write-only] 设置是否开启自定义渲染,只有开启自定义渲染,才能使用customRender函数渲染。 Sprite destroyed : Boolean = fal...

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