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

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

11. 视频 · LayaAir3.3 · 引擎文档 · LAYABOX [ 79%]

... Script extends Laya.Script { declare owner: Laya.Sprite3D; @property(Laya.Scene3D) private scene: Laya.Scene3D; private videoPlane: Laya.Sprite3D; private videoTexture = new Laya.VideoTexture(); onAwake(): void { //获取场景中要添加视频纹理的3D节点 this.videoPlane = this.scene.getChil...

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

12. 多光源渲染(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 78%]

...= this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene_Forest.ls", Handler.create(this, function (scene: Scene3D): void { //添加到场景 Laya.stage.addChild(scene); var camera: Camera = scene.getChildByName("Mai...

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

13. [LayaAir3]如何在3D场景添加文字呢 [ 78%]

...了一下可以,供参考 我在 Scene2D 的 RuntimeScript 中用 this.scene3D 去访问到 UI3D, 再用 ui3d.sprite 获取 prefab 的根节点.   export class RuntimeScript extends RuntimeScriptBase { onAwake(): void { let sprite3d: Laya.Sprite3D = this.scene3D.getChildByName("m_Sprite3D"); let ...

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

14. 抖音小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 77%]

...ends Laya.Script { //declare owner : Laya.Sprite3D; @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { //小游戏加载分包 Laya.loader.l...

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

15. laya3d物体碰撞与触发检测的问题 [ 77%]

...stScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clear...

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

16. 支付宝小游戏 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...egClass() export class Script extends Laya.Script { @property({ type: Laya.Scene3D }) scene3d: Laya.Scene3D; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //支付宝小游戏 Laya.loader.loadPackag...

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

17. 加载.lh文件 运行后黑屏 无法显示 [ 75%]

...ameConfig from "./GameConfig";  class Main {     //private scene:Laya.Scene3D;     private text:Laya.Text;     private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0);     constructor() {         this._upVector3 = new Laya.Vector3(0, 1, 0);         Laya3D.init(0,...

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

18. 第一个hellolayabox就报错了,求助! [ 74%]

...内存500M多,IPhone6还是卡死 单个场景加载的时候,使用的Scene3D.load方法的第一个例子,地面部分是白色的 求助unity导出特效 到 laya box 里 问题状态 最新活动: 2018-09-02 12:26 浏览: 670 关注: 2 人

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

19. 天空穹不显示 [ 73%]

...stScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1, 100))); camera.transform.translate(new Laya.Vector3(0, 3, 3)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); camera.clear...

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

20. localRotationEulerY旋转位置错误 [ 72%]

...private mat1: Laya.BlinnPhongMaterial;     private newScene: Laya.Scene3D;     private arr: any;     constructor() {         super();         this.arr = [];         this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D;       ...

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