大约有 1,448 项符合查询结果, 库内数据总量为 30,936 项。 (搜索耗时: 0.0047 秒)
Laya3.0_api(470) Laya_社区(446) Laya_示例(152) Laya2.0_示例(119) Laya2.0_api(71) Laya2.0_文档(71) Laya3.0_文档(61) laya_api(58)
...边缘发射。radiusproperty public var radius:Number发射器半径。Constructor DetailCircleShape()Constructorpublic function CircleShape() 创建一个 CircleShape 实例。 Method Detail_getShapeBoundBox()methodoverride protected function _getShapeBoundBox(boundBox:BoundBox):void Parameters b...
来源: Laya2.0_api 发布时间: 20190513
...r = Laya.SoundManager; export default class LoginGame extends Laya.Scene { constructor() { super(); LoginGame.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("LoginGame.scene"); } onEnable() { SoundManager.playMusic("audio/梅林茂 - 静かな古都.mp3", 0); this.login...
来源: Laya_社区 发布时间: 20181124
...示颜色差距过大 测试代码 export default class TestView { constructor() { this.init(); } init() { Laya.stage.bgColor='#ffffff'; Laya.stage.addChild(new Laya.Image('comp/img/img1.png')); Laya.timer.once(1000, this, this.delayS...
来源: Laya_社区 发布时间: 20230419
...s Mail2View extends laya.display.Sprite { private display:ui.mail.mail2UI; constructor(){ super(); this.display = new ui.mail.mail2UI(); this.addChild(this.display); } public destroy():void { this.display.destroy(); this.display.removeSelf(); super.destroy(); } }就是这段简单的测试代码,...
来源: Laya_社区 发布时间: 20170221
...meUI类)。 ```javascript export default class GameUI extends Laya.Scene { constructor(){ super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //加载场景 Laya.Scene3D.load('LayaScene_test/Conventional/test.ls',Laya.Handler.create(this,this.onComplete)) } /** * 加载完成 */ on...
来源: Laya2.0_文档 发布时间: 20210715
...方出错了,大神们求帮助 报错如下: TypeError: cls is not a constructor 最后项目文件也上传了 2018-03-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 4 个回复 Laya_XS 赞同来自: 你的问题用...
来源: Laya_社区 发布时间: 20180330
...r3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(Laya.Scene.load("../../res/t...
来源: Laya_示例 发布时间: 20250313
...ic function Demo() { } }通过编译后会变成下面的代码class Demo{ constructor (){ //this.a=0; //this.b=null; } }这里字段a和b在编译后会被注释掉,只有初始化的时候给a和b赋值,编译后的代码才不会注释掉a和b这两个字段,我想问一下,能不能不...
来源: Laya_社区 发布时间: 20210222
...typeproperty public var type:int类型,0为whole sheet、1为singal row。Constructor DetailTextureSheetAnimation()Constructorpublic function TextureSheetAnimation(frame:FrameOverTime, startFrame:StartFrame) 创建一个 TextureSheetAnimation 实例。 Parameters frame:FrameOverTime — 动画帧...
来源: Laya2.0_api 发布时间: 20190513
...项目。简单的调用接口如下: ```typescript class LayaUISample { constructor() { //初始化引擎 Laya.init(600,400,Laya.WebGL); //设置Laya提供的worker.js路径 Laya.WorkerLoader.workerPath = "libs/worker.js"; //开启worker线程 Laya.WorkerLoader.enable = true; //加载引擎需要...
来源: Laya2.0_文档 发布时间: 20210715