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

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

21. Sprite3D添加组件或脚本(JavaScript-3D基础(JS)-LayaAir3D之精灵) [ 81%]

...ame=ScriptSample))。 > 主类: > ```typescript class ScriptSample() { constructor(){ //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //预加载所有资源 var resource:Array = ["res/threeDimen/skinModel/LayaMon...

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

22. Sprite3D添加组件或脚本(TypeScript-3D基础(TS)-LayaAir3D之精灵) [ 81%]

...ame=ScriptSample))。 > 主类: > ```typescript class ScriptSample() { constructor(){ //初始化引擎 Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; //预加载所有资源 var resource:Array = ["res/threeDimen/skinModel/LayaMon...

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

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

...BoxMove from "./BoxMove"; export default class GameUI extends Laya.Scene { constructor() { super(); //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); //添加照相机 var camera = (scene.addChild(new Laya.Camera(0, 0.1...

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

24. 2.0 beta UI Button无法获取 [ 80%]

...e ui { export class AttackUI extends View { public btn_attack:Laya.Button; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("Attack"); } } } 扩展UI代码:   import { ui } from "../ui/layaMaxUI"; export default class AttackView extends ui.AttackUI { construc...

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

25. Maximum call stack size exceeded [ 80%]

...   'use strict';       class GameMain extends Laya.Scene {         constructor(){             super();               GameMain.instance = this;               Laya.MouseManager.multiTouchEnabled = false;               this.loadScene("main.scene");           }  ...

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

26. 高级应用-基于物理渲染 [ 79%]

...yName("Camera"); camera.addComponent(CameraMoveScript); });class PBRDemo { 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_示例 发布时间: 20260815

27. laya.d3.core.render.RenderState [ 78%]

...nt当前渲染物体。sceneproperty public var scene:Scene当前场景。Constructor DetailRenderState()Constructorpublic function RenderState() 创建一个 RenderState 实例。 Fri Sep 29 2017, 06:34 PM +08:00

来源: laya_api 发布时间: 20170929

28. 粒子系统-场景与粒子 [ 78%]

...r3(0, 1, 0)); camera.addComponent(CameraMoveScript);class Particle_Scene { 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_示例 发布时间: 20260815

29. Sprite用graphics绘制图形后,mouse_over触发scale显示有问题 [ 76%]

...发现个新问题 import Sprite = Laya.Sprite; class Test extends Sprite{ constructor(){ super(); this._initView(); } private _initView():void { let sprite:Sprite = new Sprite(); sprite.loadImage("res/scene/1001/layer1/qiang.jpg", 100, 100, 100, 100); this.addChild(sprite); sprite = new Sprite(); s...

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

30. Laya2.4版本,场景为内嵌时layaMaxUI类中没有声明场景中的Button等控件? [ 76%]

...el":"label"},"compId":3}],"loadList":["comp/button.png"],"loadList3D":[]}; constructor(){ super()} createChildren():void { super.createChildren(); this.createView(GameSceneuiUI.uiView); } } REG("ui.GameSceneuiUI",GameSceneuiUI); export class GameViewUI extends Laya.View { public static uiView:any ={...

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