大约有 325 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0052 秒)
Laya_社区(111) Laya3.0_api(97) Laya3.0_文档(49) Laya_示例(40) Laya2.0_文档(16) Laya2.0_api(9) laya_api(3)
...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
...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
...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
...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
... 'use strict'; class GameMain extends Laya.Scene { constructor(){ super(); GameMain.instance = this; Laya.MouseManager.multiTouchEnabled = false; this.loadScene("main.scene"); } ...
来源: Laya_社区 发布时间: 20201110
...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
...nt当前渲染物体。sceneproperty public var scene:Scene当前场景。Constructor DetailRenderState()Constructorpublic function RenderState() 创建一个 RenderState 实例。 Fri Sep 29 2017, 06:34 PM +08:00
来源: laya_api 发布时间: 20170929
...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
...发现个新问题 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
...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