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

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

391. 没有预加载的图片怎么获取width和height ? [ 74%]

...nAssetLoad));      } function onAssetLoad() {      older = new Laya.Sprite();      older.loadImage("../laya/assets/comp/image.png");     Laya.stage.addChild(older);     console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds()....

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

392. LayaAir是否有URLLoader? [ 73%]

... 1 个回复 cuixueying 赞同来自: http://layaair.ldc.layabox.com/demo/?Sprite_DisplayImage#Sprite_DisplayImage 建议你先学习下layaAir的文档和引擎示例吧,layaAir下没有URLLoader类了,过我们对图片的加载进行了精简,可以参考以上链接! 2017-05-25 0 2 分...

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

393. graphics如何绘制阴影 [ 73%]

...问题请先登录 发起人 liner1457387450 相关问题 lh文件内meshSprite添加阴影属性无效 drawCurves(x:Number, y:Number, points:Array, lineColor:*, lineWidth:Number = 1):void 绘制一系列曲线。 富文本下划线绘制bug unity导出的场景显示实时阴影 new Laya.Sprite(...

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

394. 在没有碰撞条件情况下,为何会撞歪物体,导致旋转角度改变? (附源码Laya+Unity) [ 73%]

...自: 常山赵子龙 let asteroid = asteroidBox.getChildAt(0) as Laya.Sprite3D;         asteroidBox.transform.position = new Laya.Vector3(Strong.rangeRandomFloat(-5, 5), 0, 15.4);         //asteroidBox.transform.position = new Laya.Vector3(0, 0, 7);         //...

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

395. 创建模型以后,调用destroy,以前clone的对象也消失了 [ 73%]

...象也消失了 是我的方法使用对吗? 创建模型 let s:Laya.Sprite3D = (Laya.Loader.getRes("LayaScene_Plant/Conventional/Tree_52.lh") ).clone() as Laya.Sprite3D;   销毁模型 destroy(); 帮我看看 谢谢 附件 : --> TestPrefab.zip 2020-06-11 添加评论 免费帖 --> 分享 微...

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

396. unity导出有动作的模型,加载时报错 [ 73%]

...:Assets.zip 导出资源:LayaScene_Model_1001.zip   加载代码 Laya.Sprite3D.load("res/LayaScene_Model_1001/Conventional/Model_1001.lh", Laya.Handler.create(null, (sprite:Laya.Sprite3D) => { this.mScene.addChild(sprite); sprite.transform.translate(new Laya.Vector3(-0.3, 0, 0)); }));   报...

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

397. laya.d3.core.scene.VRScene [ 73%]

...agelaya.d3.core.sceneClasspublic class VRSceneInheritanceVRScene BaseScene Sprite Node EventDispatcher Object VRScene 类用于实现VR场景。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为...

来源: laya_api 发布时间: 20170422

398. laya.ui.Clip_API3.0 [ 73%]

...fined in laya/display/Node.ts:56 _graphics _graphics: AutoBitmap Overrides Sprite._graphics Defined in laya/ui/Clip.ts:151 _ownGraphics _ownGraphics: boolean = false Inherited from Text._ownGraphics Defined in laya/display/Sprite.ts:252 _scene _scene: Node Inherited from Node._scene Defined in laya/...

来源: Laya3.0_api 发布时间: 20231115

399. 给模型动态添加脚本报错 [ 73%]

....js:13226)     at goldItemNode._onAdded (libs/laya.d3.js:10592)     at Sprite3D._addComponentInstance (libs/laya.core.js:13244)     at Sprite3D.addComponent (libs/laya.core.js:13291)     at game_scene.showPlayerGold (js/bundle.js:278)     at game_scene.onPreLoadFinish (js/bundle.js:210)  ...

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

400. 发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加会合批,这个怎么办? [ 73%]

发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加会合批,这个怎么办? 发现静态物件使用Laya.Sprite3D.instantiate方法复制出来的渲染批处理反复增加会合批,这个怎么办?复制出来的静态物件都会新...

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