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

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

1751. Laya.Browser获取宽高数值会变化,iphone6第一次加载正确,刷新几次就变大了。 [ 47%]

...', pxTimes=' + GameMain.pxTimes);         Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL);         Laya.stage.bgColor = '#cccccc';         let txt: Laya.Text = new Laya.Text();         txt.text = GameMain.pxTimes + '倍ch/h=' + Laya.Browser.clientHeight + '...

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

1752. 分享:使用 Chart.js 创建图标 [ 47%]

...小的 __JS__("var div=document.createElement('div')"); __JS__("div.style.width='400px'"); __JS__("div.style.height='400px'"); // 相对父级定位,并在最上方显示 __JS__("div.style.position='absolute'"); __JS__("div.style.zIndex=100"); // 获取laya的div,让饼图的div位于laya的上...

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

1753. Sprite3D支持的Unity导出列表(TypeScript-3D基础(TS)-LayaAir3D之Unity插件使用) [ 47%]

...derer.png) 1. Materials - Size - Element 2. Time 3. min Vertex Distance 4. Width 5. Color - Gradient 1. mode - Blend - Fixed 2. Color 3. Alpha 4. Location 6. Alignment - View - TransformZ 7. Texture Mode - Stretch

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

1754. 编译太慢了,我想到一种优化编译时间的方式,请官方给出评价 [ 47%]

...要添加这样一个类即可:class Laya { public static function init(width:Number, height:Number, ... plugins):* { return null } } 这有点类似使用laya 原生js开发中的.d.ts文件,只是我们应该让这个laya类定义库尽量的小,满足编译的要求即可。这样能够极...

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

1755. 我用matter.js渲染一个篮球, 但是不会自动旋转.. 这个怎么设置呢? [ 46%]

...w Laya.Sprite().loadImage("res/basketball.png"); ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2); this.ball = Matter.Bodies.circle(0, -100, 34, {     layaSprite: ball_skin, // 绑定一个laya的Sprite, 不能用render.sprite     density: 1, // 密度     restitution: 0.85 // 弹性...

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

1756. 类似古文显示方式脚本,文字垂直显示,可以控制显示速度出现打字效果等 [ 46%]

...) { sprite.addChild(this.sprite); this.drawText(sprite.x, sprite.y, sprite.width, sprite.height); } onEnable(): void { } onDisable(): void { } } export enum layoutType { /**竖排 */ verticalRight = 0, } 2019-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

1757. 进度条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 46%]

...res/ui/progressBar.png"); this.progressBar.pos(100, 500); this.progressBar.width = 400; this.progressBar.sizeGrid = "5,5,5,5"; this.progressBar.changeHandler = new Laya.Handler(this, this.onChange); this.owner.addChild(this.progressBar); Laya.timer.loop(100, this, this.changeValue); }); } // 模拟...

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

1758. ToolTip鼠标悬停的使用 [ 46%]

...er;//实例化TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya...

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

1759. JSON文件加载成功后,怎么解析成Object对象 [ 46%]

... txt.mouseEnabled = false; txt.overflow = Text.SCROLL; txt.size(Laya.stage.width, Laya.stage.height); txt.pos(10, 10); txt.fontSize = 30; txt.wordWrap = true; txt.color = "#FF9632"; Laya.stage.addChild(txt); var test:Object = JSON.parse('{"id": 0, "name": "Chen"}'); traceMsg(test['id']); traceMsg(te...

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

1760. List组件拖动浏览时item会出现重叠的现象 [ 46%]

...st.repeatX = 1; list.repeatY = 4; // list居中显示 list.x = (Laya.stage.width - ListDataSourceItem.WID) / 2; list.y = (Laya.stage.height - ListDataSourceItem.HEI * list.repeatY) / 2; // 使用但隐藏滚动条,滚动条水平滚动 list.vScrollBarSkin = ""; // list.vScrollBarSkin 滚动条垂直...

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