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

大约有 3,990 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0080 秒)

1431. 树状列表组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...和组件均已创建完毕,此方法只执行一次 onAwake(): void { var res: any[] = ["atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png", "resources/tree/clip_selectBox.png", "resources/tree/clip_tree_folder.png", "resources/tree/c...

来源: Laya3.0_文档 发布时间: 20251010

1432. 打包APK运行,drag拖动出现问题;color="#0"程序直接崩溃 [ 75%]

...plet));                          }         private var imag:Image;         private function onComplet():void         {             imag=new Image("ui/comp/image.png");             Laya.stage.addChild(imag);             imag.on(Event.MOUS...

来源: Laya_社区 发布时间: 20170510

1433. 使用blendMode=add模式时,某些手机上无法正常显示,出现黑底 [ 75%]

...          Laya.init(1136, 640,WebGL);              var image:Image = new Image();             image.skin = "res/atlas/clanwar_bg.jpg?" + Math.random();             Laya.stage.addChild(image);              var index:int = 0;         ...

来源: Laya_社区 发布时间: 20190110

1434. http无响应 [ 75%]

...的提交没反应呢? 单独用在其它文件也是没有反应,  var LoginView = (function (_super) { function LoginView() { LoginView.super(this); //调用父类构造函数 this.dlg; } function connect() { var hr = new Laya.HttpRequest(); hr.once(Event.PROGRESS, this, onHttpRequestProgress...

来源: Laya_社区 发布时间: 20170215

1435. TileMap有明显的bug [ 75%]

...creator不会发生这个bug。   附上测试的代码(javascript):var WebGL = laya.webgl.WebGL; Laya.init(1920, 1080, WebGL); function _OnMapCreate() { console.log("map create ..."); } var viewRect = new Laya.Rectangle(0, 0, Laya.stage.width, Laya.stage.height); var tMap = new Laya.TiledMap...

来源: Laya_社区 发布时间: 20190102

1436. laya.display.BitmapFont [ 75%]

...不用设置了)。 BitmapFontProperty DetailautoScaleSizepropertypublic var autoScaleSize:Boolean = false表示是否根据实际使用的字体大小缩放位图字体大小。fontSizeproperty public var fontSize:Number = 12当前位图字体字号,使用时,如果字号和设置不同,...

来源: Laya2.0_api 发布时间: 20190513

1437. Hbox Vbox 创建的数量多了后不是按创建的顺序显示 [ 75%]

...向可能会错乱,需要你预先设置下x方向的值,VBox同理: var hbox:HBox=new HBox(); Laya.stage.addChild(hbox); for(var i:int=0;i<20;i++) { var label:Label=new Label(); label.text='label:'+i; label.y=i*10; label.x=i*20; hbox.addChild(label); } 懒懒 • 2017-06-21 10:29 @cuixueyi...

来源: Laya_社区 发布时间: 20170527

1438. MeshSprite3D在加了physicsCollider和Rigidbody3D后,调用destroy会报错 [ 75%]

...下: this.capsule = new Laya.MeshSprite3D(new Laya.CapsuleMesh(0.5, 1)); var capsuleCollider:Laya.PhysicsCollider = this.capsule.addComponent(Laya.PhysicsCollider);//网格触发器 var capsuleShape:Laya.CapsuleColliderShape = new Laya.CapsuleColliderShape(0.5,1); capsuleCollider.colliderShape = n...

来源: Laya_社区 发布时间: 20181128

1439. 横竖屏设置 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...目),会看到所有的横竖屏属性: function setOrientation(s) { var nameToVal = { landscape: 0, portrait: 1, user: 2, behind: 3, sensor: 4, nosensor: 5, sensor_landscape: 6, sensorLandscape: 6, sensor_portrait: 7, sensorPortrait: 7, reverse_landscape: 8, reverseLandscape: 8, reverse_portr...

来源: Laya3.0_文档 发布时间: 20251010

1440. laya.ui.ScrollBar [ 75%]

...果可以当作图片源,再次绘制到其他Sprite里面,示例: var htmlCanvas:HTMLCanvas = sprite.drawToCanvas(100, 100, 0, 0);//把精灵绘制到canvas上面 var sp:Sprite = new Sprite();//创建精灵 sp.graphics.drawTexture(htmlCanvas.getTexture());//把截图绘制到精灵上 Laya.st...

来源: Laya2.0_api 发布时间: 20190513