大约有 3,008 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0063 秒)
Laya_社区(1073) Laya3.0_api(672) Laya2.0_api(368) laya_api(298) Laya2.0_文档(233) Laya_示例(146) Laya2.0_示例(118) Laya3.0_文档(100)
无法触发浏览器文件上传框 // 程序入口 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
...m3D](https://layaair.ldc.layabox.com/api2/Chinese/index.html?category=Core&class=laya.d3.core.Transform3D)API),他在3D的世界中非常的重要,所有有关显示对象变化的都会用到他。 在示例代码中已经用到了移动(translate),旋转(rotate)这两种变换,并且...
来源: Laya2.0_文档 发布时间: 20210715
...x.com/api2/Chinese/index.html?version=2.9.0beta&type=Core&category=display&class=laya.display.Stage),找到screenMode属性。如图1所示。  (图1) #### 1.1 默认值none或者不设置screenMode属性 默认值none或者不设置screenMode属性时,无论屏幕方向如...
来源: Laya2.0_文档 发布时间: 20210715
...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
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
...混排谷歌浏览器查看正常打包后的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
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
...码参考了上面那个连接,但稍微做了修改: // 程序入口 class GameMain{ constructor(){ var Loader = Laya.Loader; var Browser = Laya.Browser; var Handler = Laya.Handler; var ProtoBuf = Browser.window.protobuf; ...
来源: Laya_社区 发布时间: 20170216
...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
...前文件 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