大约有 1,106 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0058 秒)
Laya_社区(447) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(52) Laya2.0_api(35) laya_api(27)
graphics绘制报错 class Sprite_DisplayImage { constructor() { Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); const path = "./res/apes/monkey2.png"; Laya.loader.load(path, Laya.Handler.create(this, function() { let tex = Laya.loader.getRes(path); let sp = new Laya.Spr...
来源: Laya_社区 发布时间: 20190829
... = "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_示例 发布时间: 20251209
...动小程序继承Laya.Scene 的类无法实例化 new TypeError: Class constructor Vi cannot be invoked without 'new' 附件 : --> taobaominiapp.zip 2022-10-29 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 Laya...
来源: Laya_社区 发布时间: 20221029
... Laya.Sprite3D; @property( { type : Laya.Label } ) public lab: Laya.Label; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.lab.pos(Laya.stage.width >> 1, Laya.stage.height >> 1)...
来源: Laya3.0_文档 发布时间: 20251010
...显示的 示例代码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_文档 发布时间: 20251010
...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