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

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

431. Uncaught TypeError: Cannot read property '$_TID' of undefined [ 59%]

...annot read property 'displayObject' of null Laya2.1.0 JS调用Java PlatformClass undefined Uncaught unknown animationClip version. 鼠标自定义样式官方有支持吗,Laya.Mouse.hide()会报Uncaught TypeError: Cannot read property 'cursor' of undefined错误 Uncaught TypeError: Cannot read pro...

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

432. Camera摄像机有裁剪功能么? [ 59%]

... qian 赞同来自: https://layaair.ldc.layabox.com/api/?category=Core&class=laya.d3.core.Layer   2018-03-29 0 0 分享 微博 QZONE 微信 jinqi166 赞同来自: 可能跟我的需求不太一样。  比如我有两个摄像机,A,B A 看整个场景 B 只看建筑 这个要怎么实现,...

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

433. JS里面定义一个函数,无法使用Laya.Handler.creat回调 [ 59%]

...候提示onTxtLoad is undfine.请教应该怎么定义? export default class LocalTxt{ constructor() { LocalTxt.Instance = this; } onTxtLoad(aText){ console.info("dfasd"); } initTxt(){ Laya.loader.load("res/localtxt.txt",Laya.Handler.create(this, onTxtLoad),null,Loader.TEXT); } } 2019-01-30 添加...

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

434. 关于event中只读属性touches,问题,求解 [ 59%]

...ya.display.Text; import laya.events.Event; import laya.webgl.WebGL; public class DemoTouch { public function DemoTouch() { Laya.init(800, 600, WebGL); Laya.stage.bgColor = "#232628"; var txt:Text = new Text(); txt.text = "hello"; txt.color = "#FF00FF"; txt.width = 100; txt.height = 100; txt.x = 200;...

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

435. layaair 2.0 在构造函数中获取基类的组件,报错说未定义。 [ 58%]

...造函数中获取基类的组件,报错说未定义。 export default class GameLoading extends ui.gamoloadingUI{ constructor(){ super(); this.PB.changeHandler = new Laya.Handler(this,this.onChange); } } 基类中明确有PB变量,是进度条。此处构造函数中设置事件报错,说PB...

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

436. Uncaught TypeError: Game.super is not a function [ 58%]

...n var Game = (function(_super){ function Game() { Game.super(this); } Laya.ClassUtils(Game,"Game",_super) return Game; })(ui.GameUI) 2017-10-12 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 ...

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

437. 编辑模式下的赋值不保留? [ 58%]

...头像者 • 2018-10-25 14:56 写一个ts文件,写上 export default class Move extends Laya.Script{ /** @prop {name:target,tips:"目标容器",type:Prefab}*/ targetPrefab:Laya.Prefab; } 将文件在编辑模式下赋给点添加组件=》code=》move 然后创建一个box拖为预制...

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

438. 今天升级到2.0,有个问题搞懵逼了。求解 [ 58%]

...的Import 20+次? 而且被导入文档 首行必须有 export default class******* 这升级后 怎么写起来更麻烦了?还是说我没找到简便方式?? 求解 图1: 图2   问题二: 例如1.9我可以这样使用带命名空间的文档,,但是由于2.0需要Import什么...

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

439. 附加脚本的使用问题 [ 58%]

附加脚本的使用问题 class ScaleButton {     constructor() {         console.log("加载ScaleButton");     }     private _owner: any;     public set owner(o: laya.display.Sprite) {         this._owner = o;         console.log("设置owner");     }     public get owner...

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

440. 泄漏问题,望排查 [ 58%]

...供给您暂时的解决方案: 在项目的laya.core.js内,修改下class Timer的以下几处。     2021-09-22 1 3 分享 微博 QZONE 微信 Laya_Fred 赞同来自: 感谢反馈,我们查看下demo,有消息会回复您。 2021-09-15 0 0 分享 微博 QZONE 微信 刘大明 赞同来...

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