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

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

1771. webgl模式下对Panel组件旋转时Panel子对象显示错误的BUG! [ 62%]

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

1772. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 62%]

...了第:"+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

1773. 分享:Panel下动态修改子容器宽高并刷新显示! [ 62%]

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

1774. 输入文本组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 62%]

...完毕,此方法只执行一次 */ 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

1775. 在webgl适配方式为showall下图形绘制问题 [ 62%]

...。。下边代码 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

1776. 动画混合问题,Avatar动画混合报错. [ 62%]

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

1777. LayaAir DebugPanel 调试工具(JavaScript-2D进阶篇(JS)-调试相关) [ 62%]

...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](img/1.png) (图1) ### 2、刷新显示对象...

来源: Laya2.0_文档 发布时间: 20210715

1778. LayaAir DebugPanel 调试工具(TypeScript-2D进阶篇(TS)-调试相关) [ 62%]

...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所示 ![图1](img/1.png) (...

来源: Laya2.0_文档 发布时间: 20210715

1779. laya.utils.Stat [ 62%]

...t = 0[static] 每秒帧数。Stat  loopCount : int = 0[static] 主舞台 Stage 渲染次数计数。 Stat  onclick : Function[static] [write-only] 点击性能统计显示区域的处理函数。 Stat  renderSlow : Boolean = false[static] 表示当前使用的是否为慢渲染模式。Stat ...

来源: laya_api 发布时间: 20170929

1780. 场景进行destroy销毁后,再次加载同一场景,就会报错 [ 62%]

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