大约有 2,740 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0151 秒)
Laya_社区(1925) Laya3.0_api(248) Laya2.0_api(162) laya_api(132) Laya_示例(81) Laya2.0_文档(81) Laya2.0_示例(65) Laya3.0_文档(46)
...) { 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
...相关的链接 提交 2 个回复 谷主 赞同来自: 检查返回值,null就是加载失败。如果是同时加载多个资源,那检查返回的数组中是否有null。 2024-07-09 0 1 分享 微博 QZONE 微信 球块 赞同来自: Promise应该用 Laya.loader.load(urls, Laya.Loader.IMAGE...
来源: Laya_社区 发布时间: 20240705
...():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
...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
...子位置。 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
...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
...码: 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
...个新的 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
...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
...ge testString: 在js那边的代码 为: _doTestCallJava(){ let os = null let bridge = null if(typeof conchConfig != "undefined"){ os = conchConfig.getOS() } if (os == "Conch-ios") { bridge = PlatformClass.createClass("JSBridge")//创建脚步代理 } else if (os == "Conch-android") { //需要...
来源: Laya_社区 发布时间: 20211111