大约有 1,125 项符合查询结果, 库内数据总量为 31,624 项。 (搜索耗时: 0.0056 秒)
Laya_社区(426) Laya3.0_api(324) Laya2.0_api(157) laya_api(90) Laya2.0_文档(47) Laya3.0_文档(35) Laya_示例(32) Laya2.0_示例(14)
...述](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.net.LoaderManager) 。 ```typescript ...... //批量预加载方式 public function PreloadingRes() { //预加载所有资源 var resource:Array = ["res/threeDimen/scene/TerrainScene/XunLongShi.ls", "res/threeDimen...
来源: Laya2.0_文档 发布时间: 20210715
...体移动时候重合但是无法触发onTriggerEnter, export default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); } /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); }; on...
来源: Laya_社区 发布时间: 20191215
...room_zhuozi.png"); bgSprite.pos(0, 0); this.addChild(bgSprite); } } } Laya.class(Item, "Item", Box); var list = new List(); list.itemRender = Item; list.x = 15; list.y = 60; list.height = 470; list.width = 542; list.spaceY = 20; list.vScrollBarSkin = ""; list.repeatX = 1; list.repeatY = 10; list.sel...
来源: Laya_社区 发布时间: 20170920
...之后材质基类由BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 在使用自定义材质之前,一定...
来源: Laya2.0_文档 发布时间: 20210715
...述](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.net.LoaderManager) 。 ```typescript ...... //批量预加载方式 PreloadingRes(){ //预加载所有资源 var resource:Array = ["res/threeDimen/scene/TerrainScene/XunLongShi.ls", "res/threeDimen/skyBox/skyBox2/s...
来源: Laya2.0_文档 发布时间: 20210715
...nherited Externals Only exported Menu Globals "laya/display/Sprite" Sprite Class Sprite Sprite 是基本的显示图形的显示列表节点。 Sprite 默认没有宽高,默认不接受鼠标事件。通过 graphics 可以绘制图片或者矢量图,支持旋转,缩放,位移等操作。Spri...
来源: Laya3.0_api 发布时间: 20231115
...? 随便弄一个窗口,都是这样,代码如下 export default class SettingDialog extends Laya.Dialog { constructor() { super(); this.loadScene('assets/scenes/dialogs/SettingDialog.scene'); } }{ "x":0, "type":"Dialog", "selectedBox":2, "selecteID":3, "searchKey":"Dialog", "props":{"width...
来源: Laya_社区 发布时间: 20200417
...od stub Laya.Browser.window.location.href=data; } } //绑定父类 Laya.class(StartResource,"StartResource",StarUI); 主界面 红色是dalog 绿色是超链接按钮 点击超链接按钮。 并点击 chrome左上角的返回键。 回到主界面, 点击dalog,dalog失效 --...
来源: Laya_社区 发布时间: 20180810
...); // 名字 this.name = "gemini"; this.init(); } // 注册类 IsLand Laya.class(IsLand,"IsLand",laya.display.Sprite); // 原型 var _proto = IsLand.prototype; // 初始化 _proto.init = function(){ // 球体 this.ball = new Sprite(); // 城堡 this.tower = new Sprite(); // 飞艇 this.aeroboat = ne...
来源: Laya_社区 发布时间: 20170720
...的步骤为按钮绑定一个btn1.js 我在这样写的 export default class btn1 extends Laya.Script { constructor(){ alert("1"); //执行后这里触发了 super();} onEnable(){ alert("2"); //执行后这里触发了 } onclick(){ alert("3"); //执行后点击按钮这里没触发,不知道...
来源: Laya_社区 发布时间: 20181028