大约有 638 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0044 秒)
Laya3.0_api(295) Laya_社区(267) Laya2.0_文档(32) Laya3.0_文档(30) Laya2.0_示例(5) Laya2.0_api(5) laya_api(2) Laya_示例(2)
...ogle/Chrome/Application/chrome.exe", "runtimeArgs": [ "--allow-file-access-from-files", " --disable-web-security" ], "sourceMaps": true, "webRoot": "${workspaceRoot}", //假如谷歌调试报userDataDir不可用,请把谷歌安装路径取得管理员权限,或者更换${tmpdir}为其他可以读...
来源: Laya_社区 发布时间: 20200918
...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
...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
... 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
...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
...> 通过引用来导入着色器代码 ```typescript import simpleShaderFS from "./simpleShader.fs"; import simpleShaderVS from "./simpleShader.vs"; ``` > 初始化shader ```typescript //初始化我们的自定义shader initShader() { //所有的attributeMap属性 var attributeMap = { 'a_Position':...
来源: Laya2.0_文档 发布时间: 20210715
...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
... // "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
...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
...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