大约有 3,291 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0134 秒)
... 赞同来自: 在LayaPlayer中: LayaPlayer只关心html中的 <meta> 标签和, <script> 标签。其他标签都会被忽略。而<meta>标签现在只认包含name='laya'属性的,用来设置横竖屏和其他配置,例如: <meta name='laya' screenorientation='la...
来源: Laya_社区 发布时间: 20170531
ide跑没问题,安卓包跑报错 定义:bodyArr: Array<Sprite> = [] 被调用的函数 bodyCheck() { if (this.bodyArr.length <= 0) return; if (this.eatBean >= this.bodyBeanNum && this.bodyArr.length < this.bodyMaxNum) { let addBodyNum = Math.floor(this.eatBean / this.bo...
来源: Laya_社区 发布时间: 20180601
....ts:28 Returns HtmlElement Properties _attrs _attrs: Record<string, any> Defined in laya/html/HtmlElement.ts:28 name name: string Defined in laya/html/HtmlElement.ts:21 obj obj: IHtmlObject Defined in laya/html/HtmlElement.ts:25 space space: number Defined in laya/html/HtmlElement.ts:26 style ...
来源: Laya3.0_api 发布时间: 20231115
...ONE UnitX UnitY UnitZ Up ZERO Methods clone cloneTo cross dot fromArray length lengthSquared normalize scale set setValue toArray toDefault vadd vsub writeTo Clamp TransformNormal add cross distance distanceSquared dot equals lerp max min multiply normalize scalarLength scalarLengthSquared scale sub...
来源: Laya3.0_api 发布时间: 20231102
...么都装不上去! C:\Users\itadmin3\AppData\Roaming\npm\node_modules>npm install layacmd -g npm WARN ELOOP: too many symbolic links encountered, lstat 'C:\Users\itadmin3\Ap pData\Roaming\npm\node_modules\layacmd\node_modules\@types\node' npm ERR! path C:\Users\itadmin3\AppData\Roaming\npm\nod...
来源: Laya_社区 发布时间: 20171027
...,生成ui时,这类元素还未准备好,比如说<SkeletonPlayer>,当然大尺寸背景图也会在ui生成后一会儿才会显现。 生成ui时,有什么方法能判断,其包含的元素已经加载完成了吗? 或者说,那个<SkeletonPlayer>,我在生成ui...
来源: Laya_社区 发布时间: 20180623
...RL=function(url,base){ if (!url)return "null path"; //if (url.indexOf(":")> 0)return url; 这里建议是先执行customFormat 再去执行if (url.indexOf(":")> 0)return url; 因为用户可能有特殊的customFormat流程,所以应该是这两句话调下位置 //if (URL.customFormat...
来源: Laya_社区 发布时间: 20180713
...<script type="text/javascript" src="node_modules/requirejs/require.js"></script> ,而vscode里可以注释掉,还是正常。 用VS Code测试: 运行后一切正常: 而layaAir IDE,如果注释掉这一行,就一片空白,不会输出任何东西,<script type="te...
来源: Laya_社区 发布时间: 20171116
...看出来是什么意思 this.txt.x=Laya.stage.width-this.txt.width>>1; this.txt.y=Laya.stage.height-this.txt.height>>1; this.txt.borderColor="#ffff00"; this.txt.fontSize=20; this.txt.color="#ffffff"; Laya.stage.addChild(this.txt); this.txt.on(La...
来源: Laya_社区 发布时间: 20170810
...ngeError: Array buffer allocation failed at new ArrayBuffer (<anonymous>) at new Float32Array (<anonymous>) at ShurikenParticleSystem._initBufferDatas (http:/22222.com/libs/laya.d3.js:24049:39) at ShurikenParticleRenderer.set mesh [as mesh] (http://2222.com/libs/laya.d3.js:22303:41) at S...
来源: Laya_社区 发布时间: 20211211