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

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

41. 位图字体的制作与使用(TypeScript-LayaAir基础篇(TS)-文本) [ 70%]

...yFont"; constructor() {super();} onAwake(): void { //加载位位图字体 this.loadBitmapFont(); } /** * 实例化位图字体类,并加载位图字体 */ loadBitmapFont(): void { let bitmapFont: Laya.BitmapFont = new Laya.BitmapFont(); bitmapFont.loadFont("res/vvv.fnt", new Laya.Handler(this, th...

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

42. 单选框组容器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 70%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.radiogroup.pos(100, 100); this.radiogroup.labels = "label0,label1,label2"; this.radiogroup.space = 20; this.radiogroup.selectedIndex = 0; this.radiogroup.direction = "vertical"; } } 二、创建自定义的RadioGroup组件...

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

43. laya.display.Node_API3.0 [ 70%]

...器。功能同Laya.timer.clearTimer()。 Parameters caller: any 执行域(this)。 method: Function 结束时的回调方法。 Returns void contains contains(node: Node): boolean Defined in laya/display/Node.ts:546 当前容器是否包含指定的 Node 节点对象 。 Parameters node: Node 指...

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

44. Spine渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 69%]

...der.SPINE).then(() => { // 添加Spine渲染器组件到精灵节点上 this.spine = this.owner.addComponent(Laya.Spine2DRenderNode); this.spine.source = "girl2/mix-and-match-pro.json"; // 设置Spine动画数据源 this.spine.skinName = "full-skins/girl"; // 设置皮肤名称 this.spine.play("i...

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

45. 苹果审核发现使用了私有API [ 69%]

...nge. Continuing to use or conceal non-public APIs in future submissions of this app may result in the termination of your Apple Developer account, as well as removal of all associated apps from the App Store. 2018-02-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 ...

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

46. 对象池 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...* @param createFun 用于创建该类型对象的方法。 * @param caller this对象 * @return 此类型标识的一个对象。 */ static getItemByCreateFun(sign: string, createFun: Function, caller: any = null): any { var pool: any[] = Pool.getPoolBySign(sign); var rst: any = pool.length ? pool.p...

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

47. CommandBuffer · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...,//所有渲染之后 添加CommandBuffer到相机事件的接口如下: this.camera.addCommandBuffer(this.cameraEventFlag,this.commandBuffer); 删除CommandBuffer的接口如下: this.camera.removeCommandBuffer(this.cameraEventFlag,this.commandBuffer); CommandBuffer是一个渲染指令集,...

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

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

...; constructor() { super(); } //组件被启用后执行 onEnable(): void { this._level = Math.round(Math.random() * 5) + 1; this._text = this.owner.getChildByName("levelTxt") as Laya.Text; this._text.text = this._level + ""; } //每帧更新时执行 onUpdate(): void { //让持续盒子旋转 (this....

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

49. 2D寻路 · LayaAir3.3 · 引擎文档 · LAYABOX [ 68%]

...lt; sprite.numChildren; i++) { let child = sprite.getChildAt(i) as Sprite; this.findCompents(lists, child, componentType); } } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { let sprite = this.owner as Laya.Sprite; //sprite.cach...

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

50. 3D性能优化 · LayaAir3.3 · 引擎文档 · LAYABOX [ 67%]

...色值 let colorBuffer = new Float32Array(20 * 4); for (var i = 0; i < this._colorNums; i++) { let offset = i * 4; colorBuffer[offset] = Math.random(); colorBuffer[offset + 1] = Math.random(); colorBuffer[offset + 2] = Math.random(); colorBuffer[offset + 3] = 1; } //设置uniformbuffer this.batch...

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