大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0082 秒)
Laya_社区(3264) Laya2.0_文档(296) Laya_示例(141) Laya2.0_示例(117) Laya3.0_文档(107) Laya3.0_api(94) Laya2.0_api(9) laya_api(6)
...:必须是类,不能是实例化对象,Item需类继承于Box) // this.gradeList.vScrollBarSkin = ""; this.gradeList.itemRender = GradeItem; //列表显示区单元格的列数 this.gradeList.repeatX = 5; //列表显示区单元格的行数 this.gradeList.repeatY = 10; this.gradeList.space...
来源: Laya_社区 发布时间: 20190515
...览器是否支持VR模式,有三种模式immersive-vr\immersive-ar\inline this.changeActionButton.visible = await WebXRExperienceHelper.supportXR("immersive-vr"); immersive-vr就是VR模式的参数,如果是AR模式,参数换成immersive-ar即可。本篇文档只介绍VR模式。 如果检测...
来源: Laya3.0_文档 发布时间: 20240910
... { console.log("ani created:" + ani); this._hero = ani; this.addChild(this._hero); this._hero.pos(300, 400); this._hero.scale(0.3, 0.3); this._hero.on(Laya.Event.STOPPED, this, this._onPlayed); ...
来源: Laya_社区 发布时间: 20160822
前述问题this.sp3Role.transform.position无效 您好,之前这个帖子(http://ask.layabox.com/question/50395)你们回复的this.sp3Role.transform.position这个方法只让主角移动和camera.transform.position相机跟随无效,因为主角无法移动,camara还没办法尝试,...
来源: Laya_社区 发布时间: 20220622
在玩一玩上,this.mouseX 或者 this.stage.mouseX,移动位置一直对不上,在本地或者微信上都正常 在玩一玩上,this.mouseX 和 this.mouseY 或者 this.stage.mouseX和this.stage.mouseY,移动位置一直对不上,而且偏差很大,在本地或者微信上都正常。...
来源: Laya_社区 发布时间: 20180918
... COLUMNS - 1) - BUTTON_HEIGHT) / 2; Laya.loader.load(skins, Handler.create(this, onUIAssetsLoaded)); })(); function onUIAssetsLoaded() { for (var i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDL...
来源: Laya_示例 发布时间: 20250223
...ame = 'Game'; window[className] = (function(original) { function Class() { this.arr = [ "res/atlas/lucky8.json", "res/atlas/lucky8/lewinlineicons.json", "res/atlas/lucky8/setting.json", "res/atlas/lucky8/setView.json", "res/atlas/lucky8/kj.json", "res/atlas/lucky8/mh.json", "res/atlas/lucky8/light.j...
来源: Laya_社区 发布时间: 20170803
... Md5 { private static _inst:Md5; public static get Instance():Md5 { return this._inst ||(this._inst = new Md5()); } public get_md5(str:string):string { return this.md5(str); } split(target: string | any[], step: number, markString: boolean = typeof target === "string") { if (typeof target === "strin...
来源: Laya_社区 发布时间: 20190321
...景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建水平滚动条 this.createHScroller(); } /***创建水平滚动条***/ private cre...
来源: Laya2.0_文档 发布时间: 20210715
...景颜色 Laya.stage.bgColor = "#232628"; //加载资源 Laya.loader.load(this.skins, Handler.create(this, this.onSkinLoadComplete)); } /***加载资源完成***/ private onSkinLoadComplete(e:any=null):void { //创建垂直滚动条 this.createVScroller(); } /***创建水平滚动条***/ private cre...
来源: Laya2.0_文档 发布时间: 20210715