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

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

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

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

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

292. 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_示例 发布时间: 20241002

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

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

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

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

297. 3D 鼠标检测 错乱 [ 95%]

...了 修改laya.d3.js _update方法为 _update() { var i=0,n=0,j=0,m=0; n=this._eventList.length; var cameras=this._scene._cameraPool; if (n > 0){ for (i=0;i < n;i++){ var e=this._eventList; switch (e.type){ case "mousedown": this._mouseTouchDown(); break ; case "mouseup": this._mouseTouchUp();...

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

298. 龙骨skeleton鼠标点击区域的设置 [ 95%]

...angle(-420,-680,420,680); mArmature.hitArea=rect; mArmature.on(Event.CLICK,this,onClick);    2016-11-22 0 0 分享 微博 QZONE 微信 asdf131 赞同来自: 于一个点为中心播放 :      this.mArmature = this.mFactory.buildArmature(0);         this.mArmatureSpr.addChild(this.mArmatur...

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

299. 缓动-缓动函数演示 [ 95%]

... function ListItemRender() { var label = null; ListItemRender.__super.call(this); this.size(100, 20); label = new Label(); label.fontSize = 12; label.color = "#FFFFFF"; this.addChild(label); this.setLabel = function(value) { label.text = value; } } Laya.class(ListItemRender, "ListItemRender", Box); ...

来源: Laya_示例 发布时间: 20241002

300. 性能测试-虫子(慎入) [ 95%]

....stage.height + padding * 2); Laya.loader.load(texturePath, Handler.create(this, this.onTextureLoaded)); } onTextureLoaded() { maggotTexture = Laya.loader.getRes(texturePath); this.initMaggots(); Laya.timer.frameLoop(1, this, this.animate); } initMaggots() { let maggotContainer; for (let i = 0; i wb...

来源: Laya2.0_示例 发布时间: 20241002