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

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

71. 新手引导在ios浏览器表现异常 [ 93%]

...age.width,Laya.stage.height,"#FFFFFF");             Laya.stage.addChild(sp);              let guideView = new MazeGuideView();             guideView.zOrder = MazeConst.gameZOrder;             guideView.pos(0,0);             Laya.stag...

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

72. 屏幕适配的缩放模式详解(ActionScript-2D基础篇(AS3)-屏幕适配) [ 93%]

...     bg.skin = "res/img/loadingBg.jpg";         Laya.stage.addChild(bg);            //实例一个文本         txt = new Text();         txt.text = "适配模式("+Stage.SCALE_EXACTFIT+") ";         txt.bold = true;         txt.pos(1...

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

73. 射线检测-选取物体 [ 93%]

...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); //初始化照相机 var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 2, 5)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, fal...

来源: Laya_示例 发布时间: 20241117

74. 音频-播放演示 [ 93%]

...10, h = 40; const Sprite = Laya.Sprite; let btn = new Sprite(); Laya.stage.addChild(btn); btn.size(w, h); btn.graphics.drawRect(0, 0, w, h, "#FF7F50"); btn.graphics.fillText(labelText, w / 2, 8, "24px SimHei", "#FFFFFF", "center"); return btn; } // 播放音效 onPlaySound() { console.log("播放音...

来源: Laya2.0_示例 发布时间: 20241117

75. 输入设备-摇一摇 [ 93%]

... new Sprite(); shakePic.loadImage("res/inputDevice/shake.png"); Laya.stage.addChild(shakePic); } showConsoleText() { const Text = Laya.Text; console = new Text(); Laya.stage.addChild(console); console.y = picH + 10; console.width = Laya.stage.width; console.height = Laya.stage.height - console.y; co...

来源: Laya2.0_示例 发布时间: 20241117

76. UI-Dialog [ 93%]

...plete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING); dialog.addChild(button); dialog.dragArea = "0,0," + DIALOG_WIDTH...

来源: Laya_示例 发布时间: 20241117

77. 高级应用-闪光 [ 93%]

...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 6, 10)); camera.transform.rotate(new Laya.Vector3(-30, 0, 0), true, false); var glitter = ...

来源: Laya_示例 发布时间: 20241117

78. UI-Dialog [ 93%]

...a.Button; let dialog = new Dialog(); let bg = new Image(assets[0]); dialog.addChild(bg); let button = new Button(assets[1]); button.name = Dialog.CLOSE; button.pos(DIALOG_WIDTH - CLOSE_BTN_WIDTH - CLOSE_BTN_PADDING, CLOSE_BTN_PADDING); dialog.addChild(button); dialog.dragArea = "0,0," + DIALOG_WIDTH...

来源: Laya2.0_示例 发布时间: 20241117

79. 输入设备-摇一摇 [ 93%]

...prite(); shakePic.loadImage("../../res/inputDevice/shake.png"); Laya.stage.addChild(shakePic); } function showConsoleText() { console = new Text(); Laya.stage.addChild(console); console.y = picH + 10; console.width = Laya.stage.width; console.height = Laya.stage.height - console.y; console.color = "...

来源: Laya_示例 发布时间: 20241117

80. 动画-旧版骨骼动画 [ 93%]

...LL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 1.5, 3)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); var direction...

来源: Laya_示例 发布时间: 20241117