大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0128 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
....btn_register.on("click", this, this.ToRegisterPage); } ToRegisterPage() : void { this.loadScene("login/register_page"); } } //调用on的时候 直接会报Cannot read property 'on' of undefined 我再把生成的ui代码贴出来 export class login_bgUI extends View { public ...
来源: Laya_社区 发布时间: 20181207
...e onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.floor(rotationInfo.beta) + '\n' + "gamma:" + Math.floor(rotationInfo.gamma); } } new Gyroscope_Sample(); 2、加速计 Accelerator...
来源: Laya3.0_文档 发布时间: 20251010
...; cameraOffset:Laya.Point=new Laya.Point(180,570); onEnable(): void { Laya.Physics.I.allowSleeping = false; this.strWorldRoot= this.owner.scene.strWorldRoot; Laya.Physics.I.worldRoot = this.strWorldRoot; } onUpdate(): void { var...
来源: Laya_社区 发布时间: 20231123
...径数组 public var moveRanges: Array = []; public function onUpdate(): void { var seed: Number = Laya.timer.currTimer * 0.002; for (var i: int = 0, n: Number = this.lights.length; i 加载场景,并且添加多光源 ```typescript Scene3D.load("res/threeDimen/scene/MultiLightScene/InventoryScene...
来源: Laya2.0_文档 发布时间: 20210714
...ya.stage.bgColor = "#232628"; this.createInput(); } private createInput(): void { var inputText: Input = new Input(); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; inputText.text = "这段文本不可编辑...
来源: Laya_示例 发布时间: 20260303
... onDeviceorientation(absolute: Boolean, rotationInfo: Laya.RotationInfo): void { this.info.text = "alpha:" + Math.floor(rotationInfo.alpha) + '\n' + "beta :" + Math.floor(rotationInfo.beta) + '\n' + "gamma:" + Math.floor(rotationInfo.gamma); } } new Gyroscope_Sample(); ``` ## 2、加速计 `Ac...
来源: Laya2.0_文档 发布时间: 20210715
...iniAdpter.window.wx.onHide(_onHideWX); } private function _onShowWX(res:*):void { console.log("wx.onShow:",res); console.log(Laya.timer.currTimer); } private function _onHideWX():void { console.log("wx.onHide:"); console.log(Laya.timer.currTimer); } wx.onShow.currTimer == wx.onHide.currTimer 这两...
来源: Laya_社区 发布时间: 20180827
... gmajrtfp 赞同来自: static View gv; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); getWindow().requestFeature(Window.FEATURE_NO_TITLE); getWindow().setFlags(WindowManager.LayoutParams.FLAG...
来源: Laya_社区 发布时间: 20170423
...leline () Text_InputMultiline(); } private function Text_InputSingleline():void { var textInput:TextInput = new TextInput("单行输入");//创建一个 TextInput 类的实例对象 textInput 。 textInput.wordWrap = true;//设置 textInput 的文本自动换行。 textInput.fontSize = 30;//设置 t...
来源: Laya2.0_文档 发布时间: 20210715
... } private function beginLoad():void { //加载引擎需要的资源 // Laya.loader.load([{url:"res/sk/cow.sk",type:Loader.BUFFER}], Handler.create(this, onLoaded)); onLoaded(); ...
来源: Laya_社区 发布时间: 20180828