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

大约有 4,034 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0082 秒)

291. 为什么list不能滑动,怎么让list滑动 [ 95%]

...:必须是类,不能是实例化对象,Item需类继承于Box) // this.gradeList.vScrollBarSkin = ""; this.gradeList.itemRender = GradeItem; //列表显示区单元格的列数 this.gradeList.repeatX = 5; //列表显示区单元格的行数 this.gradeList.repeatY = 10;  this.gradeList.space...

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

292. WebXR · LayaAir3.3 · 引擎文档 · LAYABOX [ 95%]

...览器是否支持VR模式,有三种模式immersive-vr\immersive-ar\inline this.changeActionButton.visible = await WebXRExperienceHelper.supportXR("immersive-vr"); immersive-vr就是VR模式的参数,如果是AR模式,参数换成immersive-ar即可。本篇文档只介绍VR模式。 如果检测...

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

293. 龙骨动画残影 [ 95%]

...     {         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

294. 前述问题this.sp3Role.transform.position无效 [ 95%]

前述问题this.sp3Role.transform.position无效 您好,之前这个帖子(http://ask.layabox.com/question/50395)你们回复的this.sp3Role.transform.position这个方法只让主角移动和camera.transform.position相机跟随无效,因为主角无法移动,camara还没办法尝试,...

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

295. 在玩一玩上,this.mouseX 或者 this.stage.mouseX,移动位置一直对不上,在本地或者微信上都正常 [ 95%]

在玩一玩上,this.mouseX 或者 this.stage.mouseX,移动位置一直对不上,在本地或者微信上都正常 在玩一玩上,this.mouseX 和 this.mouseY 或者 this.stage.mouseX和this.stage.mouseY,移动位置一直对不上,而且偏差很大,在本地或者微信上都正常。...

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

296. UI-Button [ 95%]

... 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

297. js进度,进度,js场景进度效果 [ 95%]

...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

298. ts加密md5码封装 [ 95%]

... 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

299. HScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 95%]

...景颜色 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

300. VScrollBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 95%]

...景颜色 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