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

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

821. 怎么集成导入mqtt.js到laya中 [ 52%]

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

822. laya.d3.core.particleShuriKen.module.shape.ConeShape [ 52%]

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

823. 多重遮罩显示异常 [ 52%]

...,测试代码如下 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

824. laya.d3.webxr.core.WebXRCamera_API3.0 [ 52%]

... miner 类用于创建WebXR摄像机。 Hierarchy Camera WebXRCamera Index Constructors constructor Properties _cacheDepth _cacheDepthTexture _extra _forward _scene _up _url clearFlag enableRender name tag useOcclusionCulling RENDERINGTYPE_DEFERREDLIGHTING RENDERINGTYPE_FORWARDRENDERING WORLDINVERTF...

来源: Laya3.0_api 发布时间: 20231115

825. popup设置了关闭效果后,窗口关闭但遮罩层没有关掉,请问如何处理 [ 52%]

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

826. 内嵌模式创建scene,运行时报找不到json文件 [ 52%]

...,"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

827. [LayaAir 2.0] 如何用代码为Spirte添加2d物理特性 [ 52%]

...   class CollisionBoll extends Laya.Sprite { private _boll1:Laya.Sprite; constructor() { super(); //物理模块 this._boll1 = new Laya.Sprite(); this.addChild(this._boll1); this._boll1.x = 20; this._boll1.loadImage('comp/btn_close.png'); let box:laya.physics.BoxCollider = this._boll1.addComponent(...

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

828. 取色器组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 52%]

...extends Laya.Script { private skin: string = "atlas/comp/colorPicker.png"; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { Laya.loader.load(this.skin).then( ()=>{ this.onColorPickerSkinLoaded(); } ...

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

829. 混合模式-Lighter [ 52%]

...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_示例 发布时间: 20250313

830. 请教Laya.BitmapFont加载位图文字不能显示的问题 [ 52%]

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