大约有 2,610 项符合查询结果, 库内数据总量为 30,903 项。 (搜索耗时: 0.0074 秒)
Laya_社区(2270) Laya2.0_文档(96) Laya3.0_api(80) Laya2.0_api(74) Laya3.0_文档(58) laya_api(23) Laya_示例(7) Laya2.0_示例(2)
...ne3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.create(this, function(tex:Texture2D):void { material.albedoTe...
来源: Laya2.0_文档 发布时间: 20210714
...ysics.js:1802) at PrismaticJoint.__proto._setActive (laya.core.js:6983) at Sprite.__proto._inActiveHierarchy (laya.core.js:13662) at Sprite.__proto._processInActive (laya.core.js:13650) at Sprite.__proto._onRemoved (laya.core.js:13708) at Sprite.__proto._setParent (laya.core.js:13376) at Sprite.__pr...
来源: Laya_社区 发布时间: 20190227
...方法即可 /** * - 骨骼挂点 * @param nodeName * @param root * @param Sprite3D */ public static link2Node(nodeName: string, root: Laya.Sprite3D, Sprite3D: Laya.Sprite3D) { //递归调用 let index = 0; let child: Laya.Sprite3D = null; while (true) { child = root.getChildAt(index) as Laya.Sprite...
来源: Laya_社区 发布时间: 20190918
... QZONE 微信 liqunyang 赞同来自: // test drawToCanvas const sp1 = new Sprite(); sp1.loadImage('bet/cheer_1_3.png'); const sp2 = new Sprite(); sp2.x = 100; sp2.loadImage('bet/cheer_1_4.png'); sp1.addChild(sp2); this.addChild(sp1); const htmlCanvas = sp1.drawToCanvas(640, 200, 0, 0); const canvas...
来源: Laya_社区 发布时间: 20171018
Sprite.loadImage在Android平台无法卡死,web和iOS平台正常 在Android平台使用Spirte.loadImage方法初始Sprite卡死,log中一直打印日志“JCGraphicsCmdDispath::calcBoundingBox Wrong command number!,cmd=-65536” 同样的代码和图片地址在web和iOS平台正常; 代码...
来源: Laya_社区 发布时间: 20171229
... 个回复 qzzz 赞同来自: @Laya_Aaron 我把所有引用了改图片的sprite都转换类型改成image之后就不在有这个警告,能否给个解释 2020-03-21 0 0 分享 微博 QZONE 微信 qzzz 赞同来自: laya 2d部分可真不是一般人能驾驭,搞我心态的几乎全都是2d...
来源: Laya_社区 发布时间: 20200320
...Laya.stage.bgColor = "#232628"; Stat.show(); this.init(); } init() { const Sprite = Laya.Sprite, Animation = Laya.Animation, Text = Laya.Text, Event = Laya.Event; // 创建背景 this.spBg = Sprite.fromImage(PathBg); Laya.stage.addChild(this.spBg); // 创建动画 this.aniFly = new Animation(); this...
来源: Laya2.0_示例 发布时间: 20250223
Sprite graphics的显示比例问题 function createCharacter(skin) { var character = new Laya.Sprite(); character.loadImage(skin, 0, 0, 200, 200, Laya.Handler.create(this, function () {console.log('KO!~'); })); character.graphics.drawLine(0, 200, 200, 0, "#ff0000", 1); character.graphics.drawLine(...
来源: Laya_社区 发布时间: 20170828
Unity3d导出的粒子特效导入到laya中,用示例的做法,Laya.Sprite3d.load的方式加载,然后挂载到一个MeshSprite3d上,第一次显示的时候画面会卡一下,请问是什么问题? 2017-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...
来源: Laya_社区 发布时间: 20170313
ios上使用Promise加载sprite报错 hi: 我这边在测试引擎基本功能,发现在使用 Promise加载图片时出现问题:网页 和 Android版本正常,iOS报错js脚本错误。 其中环境如下: LayaAir IDE 1.7.10 beta tsconfig.json设置: iOS报错截图: 因...
来源: Laya_社区 发布时间: 20170911