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

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

91. layaMaxUI.ts的自动生成代码bug [ 72%]

... '../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

92. 获取的ui页面里下on事件无法触发 [ 72%]

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

93. HttpRequest详解(TypeScript-LayaAir基础篇(TS)-数据与通信) [ 72%]

...------ | ---------------------------------------- | | onreadystatechange | function | 一个JavaScript函数对象,当readyState属性改变时会调用它。 | | readyState | unsigned short | 请求的五种状态 | | response | varies | 响应实体的类型由 `responseType 来指定,` 可以...

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

94. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 71%]

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

95. 自己写了个label继承官方的label,出现了问题,求指导~ [ 71%]

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

96. hitTestPoint对象父容器rotation旋转之后检测不了碰撞 [ 71%]

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

97. 在Unity中设置动画事件(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 71%]

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

98. 微信小游戏加载资源问题 [ 71%]

...分享一下呢? 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

99. 调用ui,new的时候出现Uncaught TypeError: Cannot read property 'call' of undefined [ 70%]

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

100. laya加载unity插件导出的场景 physics3D is not a function [ 70%]

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