大约有 7,520 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0122 秒)
Laya_社区(6803) Laya2.0_文档(183) Laya3.0_api(118) laya_api(102) Laya2.0_api(90) Laya_示例(86) Laya3.0_文档(81) Laya2.0_示例(57)
...】laya2.0的loadImage方法为什么不触发complete? var logo = new Sprite(); Laya.stage.addChild(logo); logo.loadImage("img/load_logo.png", 0, 0, 0, 0, Handler.create(this, function(){ trace("complete!!"); })); 我在laya1.0这么写,触发complete没毛病,为什么到了2.0这个complete...
来源: Laya_社区 发布时间: 20181010
... * 绘制开放域数据 * @param {*} layout 用来显示开放域数据的Sprite */ function drawOpenData(layout: Laya.Sprite) { var openDataContext = wx.getOpenDataContext() var sharedCanvas = openDataContext.canvas sharedCanvas.width = layout.width; sharedCanvas.height = layout.height; //先清...
来源: Laya_社区 发布时间: 20180625
...染 moveArea.meshRender.enable = false; //加载网格碰撞器组件 var sprite3d1MeshCollider=moveArea.addComponent(Laya.MeshCollider); //官方js例子里少了下面这行 sprite3d1MeshCollider.mesh = moveArea.meshFilter.sharedMesh; 2018-01-20 0 4 分享 微博 QZONE 微信 为什么被折叠? 0...
来源: Laya_社区 发布时间: 20180118
2d项目RenderSprite3D出错,laya1.7.16 Uncaught TypeError: Cannot read property 'visible' of null TypeError: Cannot read property 'visible' of null at RenderSprite3D.__proto._childs (http://xxxx/game/bin/h5/Main.m ... 576:30) at Sprite.__proto.render (http://xxxx/game/bin/h5/Main.m ... 575:43) a...
来源: Laya_社区 发布时间: 20180326
...alpha混合效果出错 透明物体渲染到renderTexture之后,通过sprite渲染到游戏里的效果跟直接渲染到游戏里的效果不一致,感觉是sprite的混合模式用了add,会亮很多。 正常渲染方式 /////////////////////////////////////////////////////// rendertext...
来源: Laya_社区 发布时间: 20241029
...); var aa = '1234567'; console.log(aa.substring(0,3));*/ (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; var Loader = laya.net.Loader; var Event = Laya.Event; (function() { // ...
来源: Laya_社区 发布时间: 20170825
...nsole.log("相机位置",(this.owner.getChildByName("Main Camera") as Laya.Sprite3D).transform.position) } onStart(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDownCb) } private onMouseDownCb(e:Laya.Event):void{ console.log("点击屏幕") // console.log("相机位置",this.c...
来源: Laya_社区 发布时间: 20190621
...{ var myscene = new Laya.Scene3D; Laya.Sprite3D.load("Models/Ball.lh", Laya.Handler.create(this, function(sp){ for(var i=0; i<3; i++){ var ball = myscene.addChild(sp.clone()); ...
来源: Laya_社区 发布时间: 20200723
...Light deprecated DirectionLight 类用于创建平行光。 Hierarchy LightSprite DirectionLight Index Constructors constructor Properties _extra _scene _url name tag WORLDINVERTFRONT Accessors active activeInHierarchy color components destroyed displayedInStage hideFlags id intensity is3D layer lig...
来源: Laya3.0_api 发布时间: 20231115
...可以看到位图字体,但是进入游戏后没有显示,怎么解决 sprite设置了cacheas,removechild再addchild之后原先设置的cacheas无效,通过监测面板可以看到。请问这是不是bug? Laya中Panel控件在设计模式下,添加字内容界面。可以操作出拖动...
来源: Laya_社区 发布时间: 20190803