大约有 1,102 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0059 秒)
Laya_社区(444) Laya3.0_api(292) Laya_示例(112) Laya2.0_示例(80) Laya2.0_文档(61) Laya3.0_文档(51) Laya2.0_api(35) laya_api(27)
...。 ```typescript export default class SceneScript extends Laya.Script3D { constructor(){ super(); //用于表现的方法 this.showMsgFunc = null; } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg() { console.log("ShowMsg"); this.showMsgFunc && this.s...
来源: Laya2.0_文档 发布时间: 20210715
...TT.Client; private message: Paho.MQTT.Message; private self = this; public constructor() { public connect(url, port, client): void { //初始化 this.client = new Paho.MQTT.Client(url, Number(port), client); // set callback handlers //连接消失 收到消息 this.client.onConnectionLost = this.onC...
来源: Laya_社区 发布时间: 20180903
...,测试代码如下 export default class ClipView extends Laya.Sprite { constructor() { super(); this.init(); } init() { let bg = new Laya.Sprite(); bg.graphics.drawRect(0, 0, 500, 500, '#aaa'); this.addChild(bg); this.panel = new Laya.Panel(); this.panel.width = 500; this.panel.height = 500; this...
来源: Laya_社区 发布时间: 20210427
...r: 99, g: 0, b: 0xFF }, gradientInterval = 2000; class BlendMode_Lighter { constructor() { const Browser = Laya.Browser, WebGL = Laya.WebGL, Stage = Laya.Stage, Stat = Laya.Stat, Sprite = Laya.Sprite, Tween = Laya.Tween; // 不支持WebGL时自动切换至Canvas Laya.init(phoenixWidth * 2, phoenixHe...
来源: Laya2.0_示例 发布时间: 20250224
..../ui/layaMaxUI"; export default class ShopDialog extends ui.ShopDialogUI { constructor() { super(); this.popupEffect = Laya.Handler.create(this, this.showEffect); this.closeEffect = Laya.Handler.create(this, this.hideEffect); this.btnClose.on(Laya.Event.CLICK, this, this.closeDialog); } //关闭 clo...
来源: Laya_社区 发布时间: 20190121
...er椎体长度。radiusproperty public var radius:Number发射器半径。Constructor DetailConeShape()Constructorpublic function ConeShape() 创建一个 ConeShape 实例。 Method Detail_getShapeBoundBox()methodoverride protected function _getShapeBoundBox(boundBox:BoundBox):void Parameters bound...
来源: laya_api 发布时间: 20170929
...er椎体长度。radiusproperty public var radius:Number发射器半径。Constructor DetailConeShape()Constructorpublic function ConeShape() 创建一个 ConeShape 实例。 Method Detail_getShapeBoundBox()methodoverride protected function _getShapeBoundBox(boundBox:BoundBox):void Parameters bound...
来源: Laya2.0_api 发布时间: 20190513
...Script extends Laya.Script3D { //用于表现的方法 public showMsgFunc; constructor(){ super(); } //对应unity添加的AnimationEvent的动画事件函数,名字是可以对应上的 ShowMsg(){ console.log("ShowMsg"); this.showMsgFunc && this.showMsgFunc(); } } ``` 在加载好场景之后,...
来源: Laya2.0_文档 发布时间: 20210715
...private mFontName:string = "diyFont"; private mBitmapFont:Laya.BitmapFont; constructor() { Laya.init(600,400); this.mBitmapFont = new Laya.BitmapFont(); this.mBitmapFont.loadFont("../laya/assets/txt.fnt", new Laya.Handler(this.onLoaded)); } private onLoaded():void { this.init(); } private init():voi...
来源: Laya_社区 发布时间: 20171028
...,"height":67},"compId":3}],"loadList":["comp/label.png"],"loadList3D":[]}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(HelloUI.uiView); } } REG("ui.HelloUI",HelloUI); } 附件 : --> TestDemo.zip 2019-06-25 2 条评论 免费帖 --> 分享 微博 QZONE 微...
来源: Laya_社区 发布时间: 20190625