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

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

371. 深入理解LayaAir引擎架构和实现原理(二)项目调试原理及完美开发调试方案 [ 66%]

...ogle/Chrome/Application/chrome.exe", "runtimeArgs": [ "--allow-file-access-from-files", " --disable-web-security" ], "sourceMaps": true, "webRoot": "${workspaceRoot}", //假如谷歌调试报userDataDir不可用,请把谷歌安装路径取得管理员权限,或者更换${tmpdir}为其他可以读...

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

372. l微信开放域无法显示,但是可以正常传数据 [ 65%]

...nDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "./GameConfig"; import BigRank from "./view/BigRank"; class Main { constructor() { //设置子域 Laya.isWXOpenDataContext = true; Laya.isWXPosMsg = true; //根据IDE设置初始化引擎 Laya.init(GameConfig.width, Game...

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

373. 新手入坑请教下各位大神关于LayaMaxUI问题 [ 65%]

...teChildren(); this.loadScene('LoginScene'); }   }     import LoginScene from "./script/LoginScene" /* * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alig...

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

374. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 64%]

...             dialog.scale(1, 1);             Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 300, Ease.backOut, Handler.create(this, this.doOpen, [dialog]));         } 2018-06-21 0 2 分享 微博 QZONE 微信 1553745787...

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

375. 引擎能打包成html页面,然后直接用手机webview加载吗? [ 63%]

...es/apps/fb77dedd-fee0-40dd-9a63-4e00cb6b6a89/1.0.0/index.html-line0 :Image from origin 'file://' has been blocked from loading by Cross-Origin Resource Sharing policy: Invalid response. Origin 'null' is therefore not allowed access. 2017-07-07 0 0 分享 微博 QZONE 微信 Laya_XS 赞同来自: 那...

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

376. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 63%]

...> 通过引用来导入着色器代码 ```typescript import simpleShaderFS from "./simpleShader.fs"; import simpleShaderVS from "./simpleShader.vs"; ``` > 初始化shader ```typescript //初始化我们的自定义shader initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position':...

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

377. List翻页效果 [ 62%]

...17-12-02 0 1 分享 微博 QZONE 微信 ZX 赞同来自: import ConfigInfo from "../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.li...

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

378. Laya2.0编译后所有js都自动合并到bundle.js中,导致bundle.js过大,加载速度很慢,bundle.js可以拆分吗 [ 62%]

... // "importHelpers": true,                 /* Import emit helpers from 'tslib'. */     // "downlevelIteration": true,            /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */     // "isolatedModules": true,      ...

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

379. List翻页效果怎么实现 [ 62%]

...18-11-13 0 1 分享 微博 QZONE 微信 ZX 赞同来自: import ConfigInfo from "../data/ConfigInfo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.li...

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

380. module写法的模块无法使用,其他地方使用会报错 [ 62%]

...I'm BC!"; } } export default AM; c.ts -------------------------- import AM from './a'; //这一句LayaAir IDE 2.0会自动导入,(也可能是我安装了VSCode的Auto Import的功能实现的) import BM from './b'; window.onload = ()=>{ console.log(AM.AC.myname); console.log(BM.BC.myname);...

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