大约有 168 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0068 秒)
... '../SceneBase' import View=Laya.View; import Dialog=Laya.Dialog; var REG: Function = Laya.ClassUtils.regClass; export module ui { export class MainSceneUI extends Laya.SceneBase { constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("MainScene"); } } REG("ui.MainSc...
来源: Laya_社区 发布时间: 20190418
...ui页面里下on事件无法触发 类代码如下: var GameStartView = function () { GameStartView.super(this); this.Start.on(Laya.Event.CLICK, this, this.open); console.log(this.Start); GameStartView.prototype.open = function(){ console.log("Open is ok"); } }; Laya.class(GameStartView,"GameStart...
来源: Laya_社区 发布时间: 20180213
...------ | ---------------------------------------- | | onreadystatechange | function | 一个JavaScript函数对象,当readyState属性改变时会调用它。 | | readyState | unsigned short | 请求的五种状态 | | response | varies | 响应实体的类型由 `responseType 来指定,` 可以...
来源: Laya2.0_文档 发布时间: 20210715
...Scene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube"); //添加组件(脚本) var _script = cube.addComponent(SceneScript); //label用于显示 var _lab = new Laya.Label(); _...
来源: Laya2.0_文档 发布时间: 20210715
...rt laya.ui.Label; import laya.webgl.WebGL; public class DemoLabel { public function DemoLabel() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; //---------------------------------这是用我自己写的label继承了官方的label,问题是label显示不出来,但是也无报错--...
来源: Laya_社区 发布时间: 20170516
...ish.x = 300 _fish.y = 200 this.addChild(_fish); Laya.timer.loop(100, this, function () { console.log(_fish.x, _fish.y, _fish.width, _fish.height, _fish.rotation); if (_fish.hitTestPoint(_fish.x, _fish.y)) { console.log("hittttttt"); } }); } } //程序入口 Laya.init(600, 400); this.onLoaded() funct...
来源: Laya_社区 发布时间: 20180315
...Scene_AnimationEvent/Conventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube") as Laya.Sprite3D; //添加组件(脚本) var _script = cube.addComponent(SceneScript) as SceneScript; //label用于显...
来源: Laya2.0_文档 发布时间: 20210715
...分享一下呢? vvv123 • 2020-01-07 17:25 @星夜:window.wxMiniGame = function (exports, Laya) { 'use strict'; function DEB(str){ console.debug("[res]"+str); } class MiniFileMgr { static isLocalNativeFile(url) { for (var i = 0, sz = MiniAdpter.nativefiles.length; i < sz; i++) { if (u...
来源: Laya_社区 发布时间: 20200103
... TypeError: Cannot read property 'call' of undefined 代码: var Test = (function(_surper){ function Test(){ Test.super(this); }; Laya.class(Test, "Test", _surper); return Test; })(ui.TestUI); 报错Uncaught TypeError: Cannot read property 'call' of...
来源: Laya_社区 发布时间: 20170621
laya加载unity插件导出的场景 physics3D is not a function unity 导出的场景 放入LayaAir5.1里面加载 有 physics3D 引用。 但是一直报 laya.d3.js:14694 Uncaught TypeError: physics3D is not a function at Function.Laya3D.init (laya.d3.js:14694) at new GameUI (GameUI.ts:34) at Sce...
来源: Laya_社区 发布时间: 20181227