大约有 3,091 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0082 秒)
Laya_社区(2361) Laya2.0_文档(237) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(36)
... new PanelRotationTest(Laya.Sprite); testSpriteRotation.pos(300,260); Laya.stage.addChild(testSpriteRotation); var testPanelRotation:PanelRotationTest = new PanelRotationTest(Laya.Panel); testPanelRotation.pos(1000,260); Laya.stage.addChild(testPanelRotation); Laya.Tween.to(testPanelRotation,{rotati...
来源: Laya_社区 发布时间: 20170814
...了第:"+index+"个btn"); } //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonCli...
来源: Laya_社区 发布时间: 20170513
...g';//设置panel的垂直滚动条,方便看出panel的滚动变化 Laya.stage.addChild(panel); var sp:Sprite=new Sprite();//panel的子容器sp sp.graphics.drawRect(0,0,500,1000,"#FF0000"); sp.size(500,1000); panel.addChild(sp); var btnAdd:Button=new Button();//点击按钮,动态添加sp的子...
来源: Laya_社区 发布时间: 20170601
...完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txtin.fontSiz...
来源: Laya3.0_文档 发布时间: 20251010
...。。下边代码 Laya.init(1000,600,Laya.WebGL); Laya.Stat.show(); Laya.stage.scaleMode = "showall"; var sp1=new Laya.Sprite(); sp1.graphics.drawPath(400, 310, [["moveTo", 5, 0], ["lineTo", 105, 0], ["arcTo", 110, 0, 110, 5, 5], ["lineTo", 110, 55]...
来源: Laya_社区 发布时间: 20171127
...te (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.d3.js:32831:12) at Stage.__proto.render (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.core.js:21408:23) at Stage.__proto._loop (file:///F:/Program/PF_LAYA2.1/game/bin/libs/laya.core.js:21357:8) at loop (file:///F:/Program/PF_LAYA2.1/g...
来源: Laya_社区 发布时间: 20191026
...bugPanel调试面板 Laya.enableDebugPanel(); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; var Img = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); ``` 运行效果如图1所示  (图1) ### 2、刷新显示对象...
来源: Laya2.0_文档 发布时间: 20210715
...bugPanel调试面板 Laya.enableDebugPanel(); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; var Img:Laya.Sprite = new Laya.Sprite(); //添加到舞台 Laya.stage.addChild(Img); Img.loadImage("res/img/monkey1.png",200); } } new GameMain(); ``` 运行效果如图1所示  (...
来源: Laya2.0_文档 发布时间: 20210715
...t = 0[static] 每秒帧数。Stat loopCount : int = 0[static] 主舞台 Stage 渲染次数计数。 Stat onclick : Function[static] [write-only] 点击性能统计显示区域的处理函数。 Stat renderSlow : Boolean = false[static] 表示当前使用的是否为慢渲染模式。Stat ...
来源: laya_api 发布时间: 20170929
...3D.__proto._setParent (file:///D:/H5/bin/libs/laya.core.js:18511:31) at Stage.__proto.addChild (file:///D:/H5/bin/libs/laya.core.js:13290:9) at SceneManage.createScene (file:///D:/H5/bin/js/bundle.js:26107:20) at BattleLoading.<anonymous> (file:///D:/H5/bin/js/bundle.js:18082:57) a...
来源: Laya_社区 发布时间: 20190222