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

大约有 2,991 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0103 秒)

1541. 关于LayaBox 2.0后loadImage改了后要用什么来绘制base64 [ 69%]

...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

1542. 在Unity中设置动画事件(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 69%]

...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

1543. 请问图片大小可以手动设置宽高吗?怎么设置,看到API里的Sprite的width和height无法设置,只用于碰撞检测 [ 69%]

...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

1544. 关于mouseThough=true的问题 [ 69%]

...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

1545. Laya.Rectangle 限制拖动的区域的参数是怎么计算的,相对于什么呢 [ 69%]

...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

1546. 横屏问题,方向锁解开后。固定横屏出问题。见图。 [ 69%]

...侧。没影响。但是方向锁开开就出问题了。我用的是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

1547. 我自己绘制的矩形如何以自身中心点旋转不能实现啊 [ 69%]

...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

1548. laya.map.MapLayer_API3.0 [ 69%]

...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

1549. 关于类似webView问题 [ 69%]

...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

1550. laya.ui.DialogManager_API3.0 [ 69%]

...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