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

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

1031. 物理引擎,刚体施加力效果错误,有人帮忙看下吗 [ 65%]

...灵 Sprite3D.load("LayaScene_cu_demo/Conventional/Cu.lh", Handler.create(null, function(sp:Sprite3D):void { cu = scene.addChild(sp) as Sprite3D; cu.transform.rotate(new Vector3(0, -90, 0), true, false); _rb = cu.getComponent(Rigidbody3D) as Rigidbody3D; }));   //施加作用力或冲量 btn_a.on(E...

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

1032. 一个修复Laya1.8.3中的粒子销毁时报错黑屏问题的思路 [ 65%]

...) { Laya.WebGL.mainContext.disableVertexAttribArray(index); attrs[index] = null; } }); while (attrs.length > 0 && attrs[attrs.length - 1] == null) attrs.pop(); } }; let $bufferRecreateResource = Laya.Buffer.prototype['recreateResource']; Laya.Buffer.prototype['recreateResource'] = functio...

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

1033. [LayaAirIDE3]Laya.loader.on(Event.ERROR, this, this.onError) 无法侦听到加载资源失败 [ 65%]

...相关的链接 提交 2 个回复 谷主 赞同来自: 检查返回值,null就是加载失败。如果是同时加载多个资源,那检查返回的数组中是否有null。 2024-07-09 0 1 分享 微博 QZONE 微信 球块 赞同来自: Promise应该用 Laya.loader.load(urls, Laya.Loader.IMAGE...

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

1034. Label属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 65%]

...():void { //创建各种文本效果并设置位置 createLabel("#FFFFFF", null).pos(30, 50); createLabel("#00FFFF", null).pos(290, 50); createLabel("#FFFF00", "#FFFFFF").pos(30, 100); createLabel("#000000", "#FFFFFF").pos(290, 100); createLabel("#FFFFFF", "#00FFFF").pos(30, 150); createLabel("#0080...

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

1035. laya.map.TiledMap_API3.0 [ 65%]

...r 新视口宽 height: number 新视口高 Default value rect: Rectangle = null 返回的结果 Returns Rectangle createMap createMap(mapName: string, viewRect: Rectangle, completeHandler: Handler, viewRectPadding?: Rectangle, gridSize?: Point, enableLinear?: boolean, limitRange?: boolean): void Def...

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

1036. laya.d3.core.particleshuriken.module.shape.CircleShape_API3.0 [ 65%]

...子位置。 direction: Vector3 粒子方向。 Default value rand: Rand = null Default value randomSeeds: Uint32Array = null Returns void Globals "laya/d3/core/particleShuriKen/module/shape/CircleShape" CircleShape constructor arc emitFromEdge enable radius randomDirection shapeType arcDEG clone cl...

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

1037. 关于多个小动画打包到一个图集动画的问题 [ 65%]

...er.load("res/atlas/hero.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS) //先把四张小图拿出来 var hero_down1=Laya.loader.getRes("hero/hero_down1.jpg"); var hero_down2=Laya.loader.getRes("hero/hero_down2.jpg"); var hero_down3=Laya.loader.getRes(&...

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

1038. unity里导出的骨骼动画无法读取 [ 65%]

...码:    Laya.loader.create("res/1.lh",Handler.create(this,onModelOK),null,Sprite3D); private function onModelOK():void         {              //添加3D场景              var scene:Scene = new Scene();              Laya.stage.addChild(scene);     ...

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

1039. laya.ui.ComboBox_API3.0 [ 65%]

...个新的 ComboBox 组件实例。 Parameters Default value skin: string = null 皮肤资源地址。 Default value labels: string = null 下拉列表的标签集字符串。以逗号做分割,如"item0,item1,item2,item3,item4,item5"。 Returns ComboBox Properties Optional _extra _extra: INodeExtr...

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

1040. laya.d3.resource.RenderTexture [ 65%]

...y] 获取RenderTarget数据源,如果alreadyResolved等于false,则返回null。 RenderTexture  surfaceFormat : int[read-only] 获取表面格式。 return 表面格式。 RenderTexture  surfaceType : int[read-only] 获取表面类型。 return 表面类型。 RenderTexture width : int[read-o...

来源: laya_api 发布时间: 20170929