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

大约有 1,443 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0045 秒)

711. laya.maths.Point [ 55%]

...点的水平坐标。yproperty public var y:Number该点的垂直坐标。Constructor DetailPoint()Constructorpublic function Point(x:Number = 0, y:Number = 0) 根据指定坐标,创建一个新的 Point 对象。 Parameters x:Number (default = 0) — (可选)水平坐标。  y:Number (defau...

来源: laya_api 发布时间: 20170929

712. laya.d3.utils.Physics [ 54%]

...icsProperty Detailgravitypropertypublic static var gravity:Vector3重力。Constructor DetailPhysics()Constructorpublic function Physics()Method DetailrayCast()method public static function rayCast(ray:Ray, outHitInfo:RaycastHit, distance:Number, layer:int = 0):void 在场景中投下可与所有碰...

来源: laya_api 发布时间: 20170929

713. new vector2报错 [ 54%]

...Laya.Vector2(100, 100); 直接就包了一个异常 "Laya.Vector2 is not a constructor" 这是为什么   版本1.7.20 beta 附件 : --> 2018-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 hejianchun 赞同...

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

714. must set Document Class 是怎么回事? [ 54%]

... PhysicsCollider extends PhysicsTriggerComponent Uncaught TypeError: Class constructor Component cannot be invoked without 'new' 做微信开放域遇到Uncaught Can not find class laya.ui.WXOpenDataViewer 做微信开放域遇到Uncaught Can not find class laya.ui.WXOpenDataViewer 问题状态 最...

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

715. 分享个用美术资源做位图文本的方法。。。 [ 54%]

...需求调整,这个是json的格式: // 程序入口 class GameMain{ constructor() { Laya.init(600,400); var that = this; Laya.loader.load([{"url":"res/playerKpiFont.json","type":Laya.Loader.JSON}, {"url":"res/playerKpiFont.png","type":Laya.Loader.IMAGE}],new Laya.Handler(that,function(){ var js...

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

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

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

717. 动画节点 · LayaAir3.0文档 · LAYABOX [ 54%]

...type: Laya.Animation }) //在IDE面板中显示属性 ani: Laya.Animation; constructor() { super(); } //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.ani.source = "resources/role.atlas"; //接收动画数据源为图集 thi...

来源: Laya3.0_文档 发布时间: 20230629

718. Uncaught TypeError: Game.super is not a function [ 54%]

...ene undefined 引擎SWF动画示例,提示 TypeError: MovieClip is not a constructor 问题状态 最新活动: 2017-10-12 11:55 浏览: 883 关注: 2 人 apeCom • 2017-10-12 11:59 谢谢

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

719. 附加脚本的使用问题 [ 54%]

附加脚本的使用问题 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

720. 关于页面跳转的困惑,class初始化和释放的问题。 [ 54%]

...面的跳转,但是发现再次 从A跳转到B的时候,class B里的constructor 却执行了两次,然后再操作,变4次,无线递增,怎么解决呢。是什么原因导致的呢?   2017-09-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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