大约有 1,102 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0051 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27)
... = "res/apes/monkey2.png"; let isApeHold = false; class Interaction_Hold { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Handler = Laya.Handler; // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.A...
来源: Laya2.0_示例 发布时间: 20250224
...动小程序继承Laya.Scene 的类无法实例化 new TypeError: Class constructor Vi cannot be invoked without 'new' 附件 : --> taobaominiapp.zip 2022-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya...
来源: Laya_社区 发布时间: 20221029
...显示的 示例代码export default class HtmlTest extends Laya.Sprite { constructor() { super(); this.init(); } init() { this.bg = new Laya.Sprite(); this.bg.graphics.drawRect(0, 0, 200, 200, '#ccc'); this.addChild(this.bg); this.htmlTxt = new Laya.HTMLDivElement(); this.htmlTxt.style.fontSize = 2...
来源: Laya_社区 发布时间: 20210107
...public var speed:Number = 1.0动画播放速度,1.0为正常播放速度。Constructor DetailAnimatorState()Constructorpublic function AnimatorState() 创建一个 AnimatorState 实例。 Method DetailaddScript()method public function addScript(type:Class):AnimatorStateScript 添加脚本。 Paramet...
来源: Laya2.0_api 发布时间: 20190513
...说未定义。 export default class GameLoading extends ui.gamoloadingUI{ constructor(){ super(); this.PB.changeHandler = new Laya.Handler(this,this.onChange); } } 基类中明确有PB变量,是进度条。此处构造函数中设置事件报错,说PB未定义,但是放在onEnable中是正常...
来源: Laya_社区 发布时间: 20181225
...点的水平坐标。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
...roperty } = Laya; @regClass() export class NewScript extends Laya.Script { constructor() { super(); } onMouseClick(evt: Laya.Event): void { // 尝试获取当前位置 Laya.Geolocation.getCurrentPosition( Laya.Handler.create(this, this.onSuccess), Laya.Handler.create(this, this.onError) ); console.l...
来源: Laya3.0_文档 发布时间: 20240910
...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
...Laya.Vector2(100, 100); 直接就包了一个异常 "Laya.Vector2 is not a constructor" 这是为什么 版本1.7.20 beta 附件 : --> 2018-08-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 hejianchun 赞同...
来源: Laya_社区 发布时间: 20180823
...需求调整,这个是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