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

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

931. 物理刚体(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 65%]

...个球体模型并添加到舞台上 var sphere:Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createSphere(1))) as Laya.MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:Laya.SphereColliderShape = new Laya.SphereColliderShape(1); //给球添加刚体 var sphereR...

来源: Laya2.0_文档 发布时间: 20210714

932. 教学文档永恒之光的动画例子,运行效果与例子不符合 [ 65%]

...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; let scene = Laya.stage.addChild(new Laya.Scene()); let camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 4)); camera.transform.rotate(new Laya.Vector3( -15, 0, 0), true, false); scene.addChild(...

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

933. 显卡驱动停止响应,且大概率蓝屏,原来是Handler惹的祸,但原因是什么 [ 65%]

...教: soundManager如何停止正在播放的背景音乐 用Laya.stage.addChild(new testUI());后,原来让页面还在运行 怎么停止正在运行Laya.timer.frameLoop的回调函数 背景音乐问题,停止与播放状态与InnerAudioContext对象不同步 为什么编辑环境下的ui文...

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

934. 物理刚体(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 65%]

...建一个球体模型并添加到舞台上 var sphere:MeshSprite3D = scene.addChild(new MeshSprite3D(PrimitiveMesh.createSphere(1))) as MeshSprite3D; //新建一个球形的碰撞盒 var sphereShape:SphereColliderShape = new SphereColliderShape(1); //给球添加刚体 var sphereRigid:Rigidbody3D = ...

来源: Laya2.0_文档 发布时间: 20210714

935. [0]Laya3.0.3 的VideoNode不支持在微信浏览器中播放 [ 65%]

...e = new Laya.Image(); image.texture = new Laya.Texture(videoTexTure); this.addChild(image); image.pos(100,100); }); 2024-03-04 1 1 分享 微博 QZONE 微信 phhh 赞同来自: 2d播放视频要事件触发 2023-08-25 0 1 分享 微博 QZONE 微信 木易楊 赞同来自: 尝试过是否是微信限...

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

936. 微信小游戏下使用laya 自带的video报错 [ 65%]

...s(0,0); video.load("https://game.ruanmengkeji.com/ ... 6quot;); Laya.stage.addChild(video)    在一个界面中加入如上代码  video 没有显示 点击空白  this.videoElement.play is not a function TypeError: this.videoElement.play is not a function   2019-03-12 添加评论 免费帖 -...

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

937. Laya.Handler.create 回调参数问题 [ 65%]

...a.stage.bgColor = "#999911";  ape = new Laya.Sprite();     Laya.stage.addChild(ape); var ag = ["lsd",ape,1,"str"]; ape.loadImage("../laya/assets/res/to1.png",0,0,0,0,Laya.Handler.create(this,graphicsImg,ag));   graphicsImg(ag); }  function graphicsImg(args) { console.log(args); }   //loadIma...

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

938. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

...Arial"; ti.fontSize = 30; ti.bold = true; ti.color = "#606368"; this.owner.addChild(ti); return ti; } } (代码中的图片资源来自“引擎API使用示例”项目,开发者可以自行创建下载) 运行结果: (图2-1) Copyright ©Layabox 2025 all right reserved,powered by Laya...

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

939. tween对Text的缩放,为何会抖动呢? [ 65%]

...e.width >> 1, Laya.stage.height >> 1);     Laya.stage.addChild(txt);          Laya.Tween.to(txt, { scaleX: 2, scaleY: 2 }, 5000);   5秒钟把文本放大2倍,感觉是 fontSize在不平滑的增大,显得比较卡,有抖动   目前要达到的效果是...

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

940. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 65%]

...对齐参照物 let reference: Laya.Sprite = new Laya.Sprite(); Laya.stage.addChild(reference); reference.pos(0, 0); reference.size(Laya.stage.width, Laya.stage.height); reference.graphics.drawRect(0, 0, reference.width, reference.height, "#CCCCCC"); let tipElmt = Laya.Browser.createElement("img"); ...

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