大约有 1,763 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0065 秒)
Laya_社区(623) Laya3.0_api(482) Laya2.0_文档(180) Laya_示例(146) Laya2.0_示例(116) Laya3.0_文档(85) Laya2.0_api(67) laya_api(64)
...t中使用本地能力 下面是一个推荐做法: //Script.ts @Laya.regClass() class Script extends Laya.Script { wantToUseNode() { EditorEnv.scene.runScript("TestSceneScript.visitNode"); } } //TestSceneScript.ts import fs from "fs"; //注意是IEditorEnv.regClass,不是Laya.regClass!! @IEdito...
来源: Laya3.0_文档 发布时间: 20251010
... testUI=(function(_super){ function testUI(){ testUI.__super.call(this); } CLASS$(testUI,'ui.testUI',_super); var __proto__=testUI.prototype; __proto__.createChildren=function(){ laya.ui.Component.prototype.createChildren.call(this); this.createView(testUI.uiView); } testUI.uiView={"type":"Dialog","...
来源: Laya_社区 发布时间: 20180325
...用请参考 [http://layaair.ldc.layabox.com/api/index.html?category=Core&class=laya.ui.ViewStack](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.ViewStack)。 ## 2、通过LayaAirIDE创建ViewStack组件 ### 2.1 创建ViewStack页面 ##...
来源: Laya2.0_文档 发布时间: 20210715
....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.Clip) Clip 组件的资源示例:  (图1) 设置 clipX 属性的值为10后的显示效果:  (图2) 设置 index 属性...
来源: Laya2.0_文档 发布时间: 20210714
...是这样的:因为图标里有几个自定义属性,我定义了一个Class,继承自Box。我用List对其进行渲染,在list渲染的时候,执行renderHandler监听函数,对即将渲染的图标进行事件绑定操作。我测试的时候,想让他在鼠标点击的时候打印...
来源: Laya_社区 发布时间: 20180407
... Only exported Menu Globals "laya/d3/core/scene/bvh/BVHSpatial" BVHSpatial Class BVHSpatial BVH系统 Hierarchy BVHSpatial BVHRenderSpatial Index Constructors constructor Accessors bvhSpatialBox Methods addOne cellLegal destroy getItemByCameraCullInfo getItemByFrustum getItemBySCI motionOne rebuild ...
来源: Laya3.0_api 发布时间: 20231115
...Area = "0,0," + bgImg.width + "," + bgImg.height; dialog.show(); }; } Laya.class(LoadResource, "LoadResource", null);照着官方文档实例, 写了一个显示 Dialog 代码, 怎么显示不出来?而且F12里输出报错: Uncaught TypeError: Cannot read property 'visible' of undefined ...
来源: Laya_社区 发布时间: 20200924
...Only exported Menu Globals "laya/d3/component/AnimatorState" AnimatorState Class AnimatorState AnimatorState 类用于创建动作状态。 Hierarchy AnimatorState Implements IReferenceCounter IClone Index Constructors constructor Properties clipEnd clipStart name speed Accessors clip Methods _addRe...
来源: Laya3.0_api 发布时间: 20231102
...,要么显示一部分或者消失,测试代码如下 export default class ClipView extends Laya.Sprite { constructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width ...
来源: Laya_社区 发布时间: 20210427
...教Laya.BitmapFont加载位图文字不能显示的问题 // 程序入口 class GameMain{ private mFontName:string = "diyFont"; private mBitmapFont:Laya.BitmapFont; constructor() { Laya.init(600,400); this.mBitmapFont = new Laya.BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", new L...
来源: Laya_社区 发布时间: 20171028