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

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

1811. Object.defineProperty is not a function [ 76%]

...序报错window.focus is not a function 调用动画结束on方法,报错this.zombieAnimator.on is not a function laya加载unity插件导出的场景 physics3D is not a function 用微信开发者调试的时候出现document.createTextNode is not a function api readFile success callback function...

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

1812. 父元素,子元素,兄弟元素 [ 76%]

...:e:Laya.Event,这个能数有阻止点击事件冒泡 点击事件: this.btnHome.on(Laya.Event.CLICK, thisthis.homeClick);   private homeClick(e) { //防止点击事件穿透 e.stopPropagation(); } 2018-10-12 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回...

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

1813. Uncaught TypeError: Cannot read property '_tf' of null [ 76%]

...le(1,1);     Tween.to(image,{scaleX:0.5,scaleY:0.5},600,null,new Handler(this,tweenGuide,[image]),500); }   public function tweenGuide1(image:Image):void {    Tween.to(image,{x:100,y:100},600,null,new Handler(this,tweenGuide1,[image]),500); } ********************************************【End...

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

1814. 内存释放问题 [ 76%]

...TEXT } // 协议文件 ]; Laya.loader.load(uiResArray, Laya.Handler.create(this, onCompleted), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {string[]} resAl...

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

1815. CheckBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 76%]

... //设置舞台背景颜色 Laya.stage.bgColor = "#ffffff"; //资源路径 this.skin1 = "checkbox.png"; this.skin2 = "checkbox.png"; //加载资源成功后,执行onLoad回调方法 Laya.loader.load([skin1,skin2],Laya.Handler.create(this,onLoaded)); function onLoaded(){ //创建一个CheckBox实...

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

1816. [LayaAir3]sprite.drawToTexture( ) 无法绘制容器内容 [ 76%]

...如     onEnable(): void {         const { x, y, width, height } = this.box         Laya.loader.load('comp/image.png').then(v=>{             const texture = this.box.drawToTexture(width, height, x, y) as Laya.Texture             this.snapshot.texture = texture         })...

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

1817. 对象监听另外一个脚本的执行方法不被执行 [ 76%]

...主界面脚本中写入按钮的监听 //下拉菜单信息按钮监听 this.AllTitleButton.on(Laya.Event.MOUSE_DOWN, this, ButtonClickManager.clickinstance.AllTitleButtonClick);   而在另外的一个单例脚本中单例分离了执行方法 因为按钮监听太多 需要分离 监听和执行...

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

1818. 裁切图片后,该用什么方式去重绘出裁切后的图片 [ 76%]

...的多边形位置点数据): draw() {         const pp = this.owner.getComponent(Laya.PolygonCollider).points;         let points = this.pointS_to_pointA(pp)         let owner: Laya.Sprite = this.owner as Laya.Sprite         const ctx = owner.grap...

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

1819. 使用 addChild 加载界面后,绑定事件报错 [ 76%]

...artUI {     constructor() {         super();          this.btnStart.on(Laya.Event.CLICK, this, this.startGame);     }      startGame(): void {         //Laya.Scene.open("GameView.scene");         if (!Main.gameView) {             Main.gameVie...

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

1820. MovieClip 给SWF播放的对象 [ 76%]

...才对啊? Sprite.as public function set transform(value:Matrix):void { this._tfChanged = false; var m:Matrix = this._transform || (this._transform = _createTransform()); value.copyTo(m); _setTransform(m); //设置transform时重置x,y if (value) { _x = value.tx; _y = value.ty; value.tx = value.ty...

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