大约有 1,276 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/WebXR/core/WebXRGamepad" ButtonGamepad Class ButtonGamepad 类用来描述gamepad Button Hierarchy EventDispatcher ButtonGamepad Index Constructors constructor Properties handness index EVENT_PR...
来源: Laya3.0_api 发布时间: 20231115
... loading.changeValue); }); 进度条代码: import Handler = Laya.Handler; export class Onloading extends ui.LoadingUI{ constructor(){ super(); this.loadingBar.changeHandler = new Handler(this, this.onChange); } public changeValue():void{ console.log("chan...
来源: Laya_社区 发布时间: 20180524
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 请问laya里如何解析json,似乎和AS3的不太一样。 请问如何获取鼠标在某个元素内 相对于这个元素的坐标 请问layaair2.0-js 怎么用程序在list中添加多元素的item 问题...
来源: Laya_社区 发布时间: 20161226
...ilable ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/gltf/glTFUtils" glTFUtils Class glTFUtils glTFUtils 用于解析 glTF 2.0 对象 Hierarchy glTFUtils Index Properties Extensions Extras Methods RegisterExtra UnRegisterExtra _createMesh _createMesh...
来源: Laya3.0_api 发布时间: 20231102
...。示例代码如下: const { regClass, property } = Laya; @regClass() export class UI_ColorPicker extends Laya.Script { private skin: string = "atlas/comp/colorPicker.png"; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行...
来源: Laya3.0_文档 发布时间: 20251010
...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能console出,那个list中的数据也存在,但没渲染出...
来源: Laya_社区 发布时间: 20191022
...rowser = Laya.Browser; import WebGL = Laya.WebGL; import Stat = Laya.Stat; export class Animation_SWF{ private SWFPath:string = "h5/res/Map11.swf"; private MCWidth:number = 760; private MCHeight:number = 650; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(760,650, WebGL...
来源: Laya_社区 发布时间: 20171103
...prite = Laya.Sprite; import Stage = Laya.Stage; import WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.s...
来源: Laya_示例 发布时间: 20260819
...遮罩 详细设置见下图代码和附件DEMO中的TestScene.scene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEna...
来源: Laya_社区 发布时间: 20190730
...代码再次导入就出问题了。是要把unity场景导入到laya2.6. export default class SceneLoad extends Laya.Script{ constructor(){ super(); } onAwake(){ Laya.Scene3D.load("res/LayaScene_demo/Android/demo.ls",Laya.Handler.create(t...
来源: Laya_社区 发布时间: 20200516