大约有 2,789 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0073 秒)
Laya_社区(1162) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya3.0_文档(117) Laya2.0_示例(109)
...er.frameLoop(1, this, this.checkHit); this.loadUI(); } private checkHit(): void { //从屏幕空间生成射线 this.point.elements[0] = Laya.MouseManager.instance.mouseX; this.point.elements[1] = Laya.MouseManager.instance.mouseY; this.camera.viewportPointToRay(this.point, this.ray); Laya.Physics.r...
来源: Laya_示例 发布时间: 20260303
...同来自: Laya.timer.loop(100, this, looppp); private function looppp():void { trace("______________________"); } this.stage.on(Event.MOUSE_UP, this, onB); private function onB():void { Laya.timer.clear(this, th...
来源: Laya_社区 发布时间: 20180508
...y = true; Geolocation.getCurrentPosition(Handler.create(this,function(pos):void { alert("pos:"+pos.coords.longitude+","+pos.coords.latitude); }),Handler.create(this,function(error):void { switch (error.code) { case Geolocation.PERMISSION_DENIED: alert("位置服务被拒绝,请检查您的GPS和...
来源: Laya_社区 发布时间: 20170223
...实例。 Vector3Keyframe clone():* 克隆。 Keyframe cloneTo(dest:*):void[override] 克隆。 Vector3KeyframeProperty DetailinTangentpropertypublic var inTangent:Vector3outTangentproperty public var outTangent:Vector3valueproperty public var value:Vector3Constructor DetailVector3Keyframe()Co...
来源: Laya2.0_api 发布时间: 20190513
...JSBridge", "java: " + value); return value ? false : true; } public static void testAsyncCallback(String json) { //js thread try { JSONObject root = new JSONObject(json); Log.d("JSBridge", "java: " + root.getString( "value" )); } catch (JSONException e) { e.printStackTrace(); } m_Handler.post( new R...
来源: Laya2.0_文档 发布时间: 20210714
... flash.net.Socket.readBytes(bytes:ByteArray, offset:uint=0, length:uint=0):void 从套接字读取 length 参数指定的数据字节数。从 offset 所表示的位置开始,将这些字节读入指定的字节数组。 flash.net.Socket.writeBytes(bytes:ByteArray, offset:uint=0, length:uint=0):vo...
来源: Laya_社区 发布时间: 20161226
...ublic function Welcome() { requestData(); } private function requestData():void{ RequestConfig.instance.getRequestConfig(String(0), requestCallback); } private function requestCallback(success:Boolean):void { if(success) { loadingRes(); } } "TypeError: this.loadingRes is not a function\n at RequestC...
来源: Laya_社区 发布时间: 20170118
...e(url) /**释放资源**/ private function assetsDispose(assetsUrl:String):void { Laya.loader.clearRes(assetsUrl); //加载盘释放的资源配置表 Laya.loader.load([{url:assetsUrl,type:Loader.JSON}], Handler.create(this,onAssetsOK,[assetsUrl])); } /**加载资源释放表完成后**/ private fun...
来源: Laya_社区 发布时间: 20170904
...rojectionMatrix:Matrix4x4, viewMatrix:Matrix4x4, world:Matrix4x4, out:Ray):void[static] 计算鼠标生成的射线。 Picker rayIntersectsTriangle(ray:Ray, vertex1:Vector3, vertex2:Vector3, vertex3:Vector3):Number[static] 计算射线和三角形碰撞并返回碰撞距离。 PickerConstructor D...
来源: Laya2.0_api 发布时间: 20190513
...ics.endFill(); sp.mask=mask; addEventListener(Event.ENTER_FRAME,function():void { mask.x++; mask.cacheAsBitmap=true; sp.cacheAsBitmap=true; }); ``` **LayaAir引擎中正确的用法示例:** ```java Laya.init(600,400) var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,200,200,'#FFFF00'); Laya.st...
来源: Laya2.0_文档 发布时间: 20191206