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

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

981. 微信小游戏加载资源问题 [ 48%]

...niFileMgr.NUMERIC = 16; class MiniSoundChannel extends Laya.SoundChannel { constructor(audio, miniSound) { super(); this._audio = audio; this._miniSound = miniSound; this._onEnd = MiniSoundChannel.bindToThis(this.__onEnd, this); audio.onEnded(this._onEnd); } static bindToThis(fun, scope) { var rst =...

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

982. laya.utils.Handler [ 48%]

...执行recover()进行回收,回收后会被再利用,默认为false 。Constructor DetailHandler()Constructorpublic function Handler(caller:* = null, method:Function = null, args:Array = null, once:Boolean = false) 根据指定的属性值,创建一个 Handler 类的实例。 Parameters caller...

来源: Laya2.0_api 发布时间: 20190513

983. 【字节小游戏】游戏中播放视频 [ 48%]

...,在真机上的头条没有视频,案例代码如下class DOM_Video { constructor() { Laya.init(800, 600); Laya.stage.bgColor = "#FFFFFF"; Laya.stage.alignH = Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; // 创建Video元素 var videoElement:any = Laya.Browser.createEle...

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

984. VR场景-VR场景 [ 48%]

...imen/skyBox/skyBox2/skyCube.ltc"); vrCamera.sky = skyBox; class VRScene2 { 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_示例 发布时间: 20241002

985. [LayaAir2]iOS设备,抖音app报错 requestAnimationFrame [ 48%]

... __lookupGetter__: function() __lookupSetter__: function() __proto__: null constructor: function() hasOwnProperty: function() isPrototypeOf: function() propertyIsEnumerable: function() toLocaleString: function() toString: function() valueOf: function() __proto__: null 附件 : --> 2024-03-05 1 条...

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

986. Image.loadImage 方法加载问题 [ 48%]

...paceData;   private bg:Laya.Image;   private btnEnter:Laya.Button;   constructor()   {    super();    this.initUI();   }   private initUI () : void   {    this.bg = new Laya.Image();    this.btnEnter = new Laya.Button();    this.btnEnter.skin = "gamebutton/button_window_...

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

987. 游戏加载进度失效 [ 48%]

...是还要再做些什么设置? 详细代码如下,请大神指点。 constructor() { Laya.init(960, 540, Laya.WebGL); Laya.stage.screenMode = "horizontal"; Laya.stage.scaleMode = Laya.Stage.SCALE_EXACTFIT; Laya.stage.alignH = "center"; Laya.stage.alignV = "middle"; Laya.stage.bgColor = "#ffffff...

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

988. 关于要自定shader的同学 [ 48%]

...ShaderValue extends Laya.Value2D {class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLContext.FLOAT, false, _vlen, 2 * Laya.CONST3D2D.BYTES_PE] this.c...

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

989. 技术文档的代码无法编译运行(var efc = new ui.TestPUI();) [ 48%]

...的话,无法运行。 测试时提示这个:"laya.ui.TestPUI is not a constructor",请问下是不是少应用了JS文件啊?     //实例化导出的UI类     //var efc = new laya.ui.TestPUI()     //添加到舞台     //Laya.stage.addChild(efc); HelloWorld.rar 2017-07-24 0 0 分...

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

990. laya.d3.component.Component3D [ 48%]

...odestartedproperty public var started:Boolean是否已执行start函数。Constructor DetailComponent3D()Constructorpublic function Component3D() 创建一个新的 Component3D 实例。 Event Detail enabledchanged Event Event Object Type: laya.events.EventEvent.type property = Event.ENABLED_CHANGE...

来源: laya_api 发布时间: 20170929