大约有 2,991 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0103 秒)
Laya_社区(2265) Laya2.0_文档(235) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(34)
...p: Laya.Sprite = new Laya.Sprite();sp.loadImage(data, 0, 0, 200, 200);Laya.stage.addChild(sp); 但现在2.0的loadImage 的 data 就只会被默认为url了, var sp: Laya.Sprite = new Laya.Sprite();sp.loadImage(data);Laya.stage.addChild(sp); 本来1.0时loadImage这个方法中的data参数不...
来源: Laya_社区 发布时间: 20200111
...nventional/layaScene.ls", Laya.Handler.create(this, function(scene) { Laya.stage.addChild(scene); //获取cube对象 var cube = scene.getChildByName("Cube"); //添加组件(脚本) var _script = cube.addComponent(SceneScript); //label用于显示 var _lab = new Laya.Label(); _lab.text = "test"; _lab...
来源: Laya2.0_文档 发布时间: 20210715
...ian 赞同来自: this.bg_img.skin = "ui/bg.jpg"; this.bg_img.width = Laya.stage.width; this.bg_img.height = Laya.stage.height; Image使用skin修改显示,改变宽高时,会拉伸显示内容 2018-01-22 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请...
来源: Laya_社区 发布时间: 20180122
...18-03-14 15:50 public function LateTest() { Laya.init(400,400,WebGL); Laya.stage.bgColor = "#ff0000"; // trace(Laya.timer.toString()); // Laya.timer.callLater(this,onLater); // trace(Laya.timer.toString()); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAG...
来源: Laya_社区 发布时间: 20180314
...0开始,这样也不行 this.dragRegion = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height);该怎么处理呢 2018-05-30 0 2 分享 微博 QZONE 微信 Laya_Aaron 赞同来自: 什么区域。 2018-05-31 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复...
来源: Laya_社区 发布时间: 20180530
...侧。没影响。但是方向锁开开就出问题了。我用的是Laya.stage.screenMode = "horizontal"。 2017-11-02 0 0 分享 微博 QZONE 微信 wudi199553 赞同来自: https://layaair.ldc.layabox.co ... scape,可以看一下官方引擎事例 2017-11-03 0 1 分享 微博 QZONE 微信 ljy32...
来源: Laya_社区 发布时间: 20171102
...unction HelloLaya() { Laya.init(Browser.width, Browser.height,WebGL); Laya.stage.bgColor="#eeffcc"; var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoo...
来源: Laya_社区 发布时间: 20170830
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX ske...
来源: Laya3.0_api 发布时间: 20231115
...ying 赞同来自: var p:HTMLIframeElement = new HTMLIframeElement(); Laya.stage.addChild(p); p.href = "http://10.10.20.5:8899/test.html"; p.y = 200;参考下以上方式! 2017-05-22 0 6 分享 微博 QZONE 微信 189*****192 赞同来自: 可以加载出来了 加载 画布上面div 上面 ...
来源: Laya_社区 发布时间: 20170522
...ponents customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation globalScaleX globalScaleY graphics height hideFlags hitArea is3D mask mouseEnabled mouseX mouseY numChildren parent pivotX pivotY rotation scaleX scaleY scene scrollRect skewX ske...
来源: Laya3.0_api 发布时间: 20231115