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

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

1041. laya.d3.graphics.VertexBuffer3D [ 78%]

...。 VertexBuffer3D  bind():Boolean[override] VertexBuffer3D  destroy():void[override] VertexBuffer3D  getData():* 获取顶点数据。 VertexBuffer3D  setData(data:*, bufferOffset:int = 0, dataStartIndex:int = 0, dataCount:uint = 4294967295):void 设置数据。 VertexBuffer3DPublic Constan...

来源: Laya2.0_api 发布时间: 20190513

1042. 分享:简单聊天室 [ 78%]

...e.on(Event.KEY_DOWN,this,onKeyDown); } private function onKeyDown(e:Event):void { // 当按下enter健自动发送文字 if(e.keyCode==13) { change(str); } } // 发送文字样式二,如果input有值的话,发送input的内容 private function onSendClick1():void { change(str2); } // 发送文...

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

1043. RopeJoint代码动态创建 无法设置otherbody [ 78%]

...        }      onTriggerEnter(other: any, self: any, contact: any): void {     //搜索黏贴在圆环上     } onUpdate(): void {     }  onDisable(): void {     Laya.Pool.recover("friut",this.owner); } } 附件 : --> FruitMaster.zip 2022-04-13 添加评论 免费帖 --> 分享 微...

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

1044. popupEffect 有谁能告诉我dialog的这个东西要怎么用啊? [ 78%]

...t修改      public var popupEffect:Function = function(dialog:Sprite):void {             dialog.scale(1, 1);             Tween.from(dialog, {x: Laya.stage.width / 2, y: Laya.stage.height / 2, scaleX: 0, scaleY: 0}, 300, Ease.backOut, Handler.create(this, this.doOpen, [di...

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

1045. 【官网代码】加载dom音频报错,怎么回事? [ 78%]

...(Event.CLICK,this,clickHandler); }private function clickHandler(e:Object):void{var http:HttpRequest = new HttpRequest();http.on(Event.COMPLETE,this,completeHandler);http.send("489.mp3","","get",Loader.BUFFER);}private function completeHandler(e:Object):void{audioContext.decodeAudioData(e,decodeAudi...

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

1046. 网络和格式-Socket [ 78%]

...arCodeAt(i)); } socket.flush(); } private function onSocketClose(e:*=null):void { trace("Socket closed"); } private function onMessageReveived(message:*=null):void { trace("Message from server:"); if (message is String) { trace(message); } else if (message is ArrayBuffer) { trace(new Byte(message).r...

来源: Laya2.0_示例 发布时间: 20260303

1047. laya.components.AnimatorState2D_API3.0 [ 78%]

...et clip(): AnimationClip2D | null set clip(value: AnimationClip2D | null): void Defined in laya/components/AnimatorState2D.ts:82 动作。 Returns AnimationClip2D | null Defined in laya/components/AnimatorState2D.ts:86 动作。 Parameters value: AnimationClip2D | null Returns void Methods addScript...

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

1048. 小游戏的后台切换事件名是什么?? [ 78%]

...* @author lin */ public class ZeroWXAdpter { static public function init():void { MiniAdpter.window.wx.onShow(onShow); MiniAdpter.window.wx.onHide(onHide); } static private function onShow(res):void { console.warn("小游戏回到前台", res); } static private function onHide():void { console.warn(...

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

1049. TiledMap销毁的问题,TiledMap销毁后屏幕变灰,不能显示 [ 78%]

...iledMap的destroy方法内 /** * 销毁地图 */ public function destroy():void { ....... //这里是销毁地图层的代码 var tLayer:MapLayer; for (i = 0; i < _layerArray.length; i++) { tLayer = _layerArray[i]; tLayer.clearAll(); } ........ }然后在MapLayer的clearAll()里面会去销毁子...

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

1050. laya.resource.AssetDb_API3.0 [ 78%]

... string resolveURL resolveURL(url: string, onResolve?: (url: string) => void): Promise<string> Defined in laya/resource/AssetDb.ts:59 获取真实的Url Parameters url: string Optional onResolve: (url: string) => void (url: string): void Parameters url: string Returns void Returns Promis...

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