大约有 4,338 项符合查询结果, 库内数据总量为 30,789 项。 (搜索耗时: 0.0114 秒)
Laya_社区(2450) Laya3.0_api(673) Laya2.0_api(357) laya_api(289) Laya2.0_文档(271) Laya_示例(157) Laya2.0_示例(116) Laya3.0_文档(25)
Laya2.2问题,有没有遇到的? 子域所有代码 (function () { 'use strict'; class GameConfig { constructor() { } static init() { var reg = Laya.ClassUtils.regClass; } } GameConfig.width = 640; GameConfig.height = 1136; GameConfig.scaleMode = "fixedwidth"; GameConfig.screenMode = "none";...
来源: Laya_社区 发布时间: 20200104
... 加载场景报错 Laya.loader.load( 模型url, Laya.Handler.create(this, function(){ this.scene = Laya.loader.getRes(模型url); Laya.stage.addChild(this.scene); }),null, null, 1, true, "scene1"); 执行后,浏览器报 : laya.core.js:13290 Uncaught TypeError: node._setParent is not a function...
来源: Laya_社区 发布时间: 20181208
...:1 gameThirdScriptError VM122:1 gameThirdScriptError window.focus is not a function TypeError: window.focus is not a function at Function.t.__init__ (http://127.0.0.1:62307/game/code.js:1881:1176) at Object.Laya.init (http://127.0.0.1:62307/game/code.js:150:34) at new t (http://127.0.0.1:62307/game/...
来源: Laya_社区 发布时间: 20180516
...间为1秒 private var ape:Sprite; private var isApeHold:Boolean; public function Interaction_Hold() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sca...
来源: Laya2.0_示例 发布时间: 20241127
...如下:Laya.class(MousePickingScene, "MousePickingScene", Laya.Scene); function MousePickingScene() { MousePickingScene.super(this); this.camera = new Laya.Camera(0,0.1,100); this.addChild(this.camera); this.camera.clearFlag = Laya.BaseCamera.CLEARFLAG_SKY; this.skyBox = new Laya.SkyBox(); this.ca...
来源: Laya_社区 发布时间: 20170323
...t; mytexts.as: public class myTexts extends myTextsUI public function myTexts() { super(); } override protected function initialize():void { super.initialize(); } ...
来源: Laya_社区 发布时间: 20170703
...inModel/LayaMonkey/LayaMonkey.lh", Laya.Handler.create(this, onComplete)); function onComplete() { layaMonkey3D = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey2D = Laya.stage.addChild(new Laya.Image("../../res/threeDimen/monkey.png")); Laya...
来源: Laya_示例 发布时间: 20241127
...laya.ui.Image // 下载图片资源 1.bmp _proto.MyHttpGet = function() { var url = "http://192.168.8.35:80/singer/1.bmp"; var req = new laya.net.HttpRequest(); req.on(laya.events.Event.COMPLETE, this, cb_onSuccess); req.on(laya.e...
来源: Laya_社区 发布时间: 20170103
...ins, Handler.create(this, onSkinLoadComplete)); /***加载资源完成***/ function onSkinLoadComplete(e) { //创建垂直滚动条 createVScroller(); } /***创建水平滚动条***/ function createVScroller() { //实例化垂直滚动条 this.vScrollBar = new VScrollBar(); //加载皮肤资源(...
来源: Laya2.0_文档 发布时间: 20210715
... private var sp:Sprite; public function Sprite_DrawShapes() { Laya.init(500, 300, WebGL); drawSomething(); } private function drawSomething():void ...
来源: Laya2.0_文档 发布时间: 20210714