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

大约有 3,008 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0063 秒)

2551. 无法触发浏览器文件上传框 [ 44%]

无法触发浏览器文件上传框 // 程序入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Ev...

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

2552. LayaAir3D中的Transform变换(JavaScript-3D基础(JS)-LayaAir3D图形系统基础概念) [ 44%]

...m3D](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.core.Transform3D)API),他在3D的世界中非常的重要,所有有关显示对象变化的都会用到他。 ​ 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且...

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

2553. 屏幕方向:自动横屏与自动竖屏的设置详解(JavaScript-LayaAir基础篇(JS)-屏幕适配) [ 44%]

...x.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Stage),找到screenMode属性。如图1所示。 ![图1](img/1-1.png) (图1) #### 1.1 默认值none或者不设置screenMode属性 默认值none或者不设置screenMode属性时,无论屏幕方向如...

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

2554. LayaAir DebugPanel 调试工具(ActionScript-2D进阶篇(AS3)-调试相关) [ 44%]

...package { import laya.debug.DebugPanel; import laya.display.Sprite; public class Main { public function Main() { //初始化舞台 Laya.init(1334,750); //调用DebugPanel调试面板 Laya.enableDebugPanel(); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; var Img:Sprite = new Sprite(); //添...

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

2555. laya.utils.PerfHUD [ 44%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames PerfHUDProperties | Methods | Events Packagelaya.utilsClasspublic class PerfHUDInheritancePerfHUD Sprite Node EventDispatcher ObjectPublic Properties Hide Inherited Public Properties Show Inherited Public Properties Pr...

来源: Laya2.0_api 发布时间: 20190513

2556. 这是图文混排谷歌浏览器查看正常打包后的APP文字消失表情变大 [ 44%]

...混排谷歌浏览器查看正常打包后的APP文字消失表情变大 class CAffiche { private textfiled:Laya.HTMLDivElement; public Reset():void { gRoomView.chatBox.innerHTML = ""; gRoomView.chatBox.height = 1; } public SysSay(txt:string):void { this.AddChat(0, "法官", txt); } public PlayerSay...

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

2557. laya.ui.ScaleBox [ 44%]

API DocumentationAll Packages | All Classes | Index | Frames No Frames ScaleBoxProperties | Methods | Events Packagelaya.uiClasspublic class ScaleBoxInheritanceScaleBox Box UIComponent Sprite Node EventDispatcher Object 自适应缩放容器,容器设置大小后,容器大小始终保...

来源: Laya2.0_api 发布时间: 20190513

2558. layaAir TS项目如何引用protoBuf库? [ 44%]

...码参考了上面那个连接,但稍微做了修改: // 程序入口 class GameMain{     constructor(){         var Loader = Laya.Loader;         var Browser = Laya.Browser;         var Handler = Laya.Handler;         var ProtoBuf = Browser.window.protobuf;       ...

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

2559. [含Demo]Laya2.0.1出包微信小游戏Android黑屏 expected Number(uniform4f) [ 44%]

...tAnimationFrame callback function Error: expected Number(uniform4f)<div class="eruda-json eruda-hidden"></div> at e.value (wagame://WAGameVConsole.html:27576:37881) at new e (wagame://WAGameVConsole.html:27576:36645) at t.value (wagame://WAGameVConsole.html:27576:32217) at t.value (wagam...

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

2560. ProtocolBuffer通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 44%]

...前文件 import * as protobuf from "./libs/protobuf/protobuf"; const { regClass } = Laya; @regClass() export class ProtobufDemo extends Laya.Script { onEnable() { console.log("Game start"); } } 2.2 Protobuf示例脚本 引入了protobuf模块就可以直接在项目中使用了,这里我们写了...

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