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

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

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

822. 多重遮罩显示异常 [ 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

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

824. 内嵌模式创建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

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

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

827. 请教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

828. 混合模式-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_示例 发布时间: 20241002

829. laya.resource.HTMLCanvas [ 52%]

...tproperty public var getContext:Function 获取 Canvas 渲染上下文。 Constructor DetailHTMLCanvas()Constructorpublic function HTMLCanvas(type:String) 根据指定的类型,创建一个 HTMLCanvas 实例。请不要直接使用 new HTMLCanvas! Parameters type:String — 类型。2D、3D。 ...

来源: laya_api 发布时间: 20170929

830. IDE里的组件不能使用Dictionary么?生成的JS里,有new Dictionary()的时候。组件拖动到界面会报错 [ 52%]

...Dictionary()的时候。组件拖动到界面会报错 Dictionary is not a constructor 2017-09-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - 知识达人 赞同来自: 目前IDE中没有Dictionary类...

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