大约有 1,761 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0076 秒)
Laya_社区(1141) Laya3.0_api(223) Laya2.0_文档(89) Laya2.0_api(72) Laya2.0_示例(66) Laya_示例(63) laya_api(62) Laya3.0_文档(45)
... list.itemRender = Item; list.x = 15; list.y = 60; list.height = 470; list.width = 542; list.spaceY = 20; list.vScrollBarSkin = ""; list.repeatX = 1; list.repeatY = 10; list.selectEnable = false; list.renderHandler = new Handler(this, function(cell, index) { cell.setImg(cell.dataSource); }); this.ro...
来源: Laya_社区 发布时间: 20170920
...们改变注册点到图片正中心,如下图(图2) sp1.pivotX=sp1.width>>1; sp1.pivotY=sp1.height>>1; 然后我 rectangle1 = new Rectangle(0, 0, 172, 172); (前两个代表矩形框的坐标,后面是大小) 因为rectangle无法改变注册点,理论上如果它是一...
来源: Laya_社区 发布时间: 20161214
...var mSkinList = ["goblin", "goblingirl"]; (function () { Laya.init(Browser.width, Browser.height, WebGL); Laya.stage.bgColor = "#ffffff"; Stat.show(); mLabelSprite = new Sprite(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes2/goblins.sk"; mFactory = new Templet(); mFactory....
来源: Laya_社区 发布时间: 20170818
...,会有黑边),根据屏幕长宽比,自动选择使用SCALE_FIXED_WIDTH或SCALE_FIXED_HEIGHT*/ 你想要的效果应该用exactfit /**应用根据屏幕大小铺满全屏,非等比缩放会变型,stage的宽高等于设计宽高。*/ public static const SCALE_EXACTFI...
来源: Laya_社区 发布时间: 20180806
...temRender = Item; list.repeatX = 1; list.repeatY = 4; list.x = (Laya.stage.width - WID) / 2; list.y = (Laya.stage.height - HEI * list.repeatY) / 2; // 使用但隐藏滚动条 list.vScrollBarSkin = ""; list.selectEnable = true; list.selectHandler = new Handler(this, onSelect); list.renderHandler = n...
来源: Laya_社区 发布时间: 20180312
...加到舞台 Laya.stage.addChild(btn); //设置Button相关的属性 btn.width = 100; btn.height = 50; btn.pos(100,100); btn.label = "按钮"; } } } ``` 上述代码运行效果如动图2所示:  (动图2) **Tips:** Button 组件的属性接口介绍请参考 [Button API](http...
来源: Laya2.0_文档 发布时间: 20210715
...019-06-13 11:20:13.099 RBaoSANGuo_H5L1[1552:289925] =============onGLReady width=1080,height=1920 2019-06-13 11:20:13.099 RBaoSANGuo_H5L1[1552:289925] download thread num = 3 2019-06-13 11:20:13.250 RBaoSANGuo_H5L1[1552:289925] createOpenALSource current num=10 2019-06-13 11:20:13.251 RBaoSANGuo_H5L...
来源: Laya_社区 发布时间: 20190612
... Laya.stage.addChild(this.sp); this.sp.x = Laya.stage.width / 2; this.sp.y = Laya.stage.height / 2; } } 打印的报错: 11111111111 TransformDemo.ts:73 Resources already exist,is repeated loading: D:/myLaya/myLaya/bin/res/threeDimen/particle/2d.lh laya...
来源: Laya_社区 发布时间: 20190509
... var w:Number = maskSp.getSize().width; var h:Number = maskSp.getSize().height; switch (this.type) { case PROG...
来源: Laya_社区 发布时间: 20180404
... = Laya.Point; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var viewWidth = Browser.width; var viewHeight = Browser.height; var lasers = []; var tick = 0; var frequency = 80; var type = 0; (function() { Laya.init(viewWidth, viewHeight, WebGL); Laya.stage.screenMode = Stage.SCREEN_HORIZONTAL; ...
来源: Laya_示例 发布时间: 20260303