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

大约有 99 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0047 秒)

61. 为什么会出现报错 ani not found:ufo1_down [ 50%]

...化子弹信息 bullet.init("bullet1",role.camp,1,-4-role.shootType - Math.floor(this.level / 15),1,1); // 设置角色类型为子弹类型 // bullet.isBullet = true; // 设置子弹发射初始化位置 bullet.pos(role.x + pos[index], role.y - role.hitRadius - 10 ); // 添加到舞台上 Laya.stag...

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

62. drawToCanvas绘制显示不全 [ 50%]

...     style.height = screen.height + 'px';         style.width = Math.floor(screen.height / Laya.stage.height * Laya.stage.width) + 'px';         document.body.appendChild(this.nativeImg)     }     onEnable() {         Laya.timer.once(1000, this, this.delayShowImg);     }     de...

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

63. 阻止点击穿透问题 [ 50%]

...pPropagation(); if(!Game.runing) { Game.runing = true; Game.stepNum = Math.floor(Math.random() * 6) + 1; console.log(Game.stepNum) Animate.role(Game.stepNum); } },[this.items.shaizi]);  弹层的代码: this.prizeAlertLayer = new Sprite(); this.prizeAlertLayer.zOrder = 90; this.prizeAlertLayer.si...

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

64. ProgressBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 50%]

...value += 0.05; } function onChange(value) { console.log("进度:" + Math.floor(value * 100) + "%"); } })(); ```

来源: Laya2.0_文档 发布时间: 20210715

65. 微信小游戏提审后,提示说代码侵权 [ 49%]

...tr.substr(len, str.length - len - 1); console.log(name); let number = Math.floor(Math.random() * 9999); let name2; let lastIndex = name.lastIndexOf("_"); if(lastIndex == -1){ name2 = name + "_" + number; }else{ name2 = name.substr(0, lastIndex) + "_" + number; } let name2s = name2 + "("; //phpConten...

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

66. ProgressBar属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 48%]

...; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar(); ```

来源: Laya2.0_文档 发布时间: 20210715

67. laya.d3.webxr.core.WebXRExperienceHelper_API3.0 [ 48%]

...ode referenceSpaceType: string referenceType = "viewer" | "local" | "local-floor" | "unbounded"; cameraInfo: WebXRCameraInfo WebXRCameraInfo webXRCamera设置 Returns Promise<WebXRSessionManager> Promise Static setWebXRCamera setWebXRCamera(camera: Camera, manager: WebXRSessionManager): WebXRC...

来源: Laya3.0_api 发布时间: 20231115

68. 3D寻路 · LayaAir3.0文档 · LAYABOX [ 47%]

... cellZ = this.terrainSprite.depth / this.aStarMap.height; var gridX = Math.floor((x - minX) / cellX); var gridZ = Math.floor((z - minZ) / cellZ); var boundWidth = this.aStarMap.width - 1; var boundHeight = this.aStarMap.height - 1; (gridX > boundWidth) && (gridX = boundWidth); (gridZ >...

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

69. ProgressBar属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 47%]

...*/ private function onChange(value:Number):void { trace("进度:" + Math.floor(value * 100) + "%"); } } } ```

来源: Laya2.0_文档 发布时间: 20210715

70. 如何在游戏入口处获取对象的子对象 [ 47%]

...取通行层 console.log(this.pass); } _proto.getLayer = function() { this.floor = this.map.getLayerByIndex(0);//获取通行层 console.log(this.pass); } console.log(this.map) return loadMap; })(Sprite);**游戏主入口** var Main = (function (){ (function Main(){ Laya.init(448,448); var map1 = ne...

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