大约有 2,728 项符合查询结果, 库内数据总量为 30,782 项。 (搜索耗时: 0.0064 秒)
Laya_社区(1131) Laya3.0_api(543) Laya2.0_api(297) laya_api(221) Laya2.0_文档(201) Laya_示例(139) Laya2.0_示例(109) Laya3.0_文档(87)
...thods MethodDefined By Geolocation()Geolocation clearWatch(id:int):void[static] 移除watchPosition安装的指定处理器。 Geolocation getCurrentPosition(onSuccess:Handler, onError:Handler = null):void[static] 获取设备当前位置。 Geolocation watchPosition(onSuccess:Handler,...
来源: laya_api 发布时间: 20170929
...thods MethodDefined By Geolocation()Geolocation clearWatch(id:int):void[static] 移除watchPosition安装的指定处理器。 Geolocation getCurrentPosition(onSuccess:Handler, onError:Handler = null):void[static] 获取设备当前位置。 Geolocation watchPosition(onSuccess:Handler,...
来源: Laya2.0_api 发布时间: 20190513
...); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度:' + info.accuracy + 'm'); if(info.altitude != null) trace('海拔:' + info.altitude + 'm' + (info.altitudeAccuracy != null ? (',...
来源: Laya2.0_文档 发布时间: 20210714
...有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hbox.pos(100, 100); this.hbox.bgColor = "#ffffff"; this.hbox.space = 100; this.hbox.align = "middle"; } } 二、通过代码创建HBox组件 有时,需要用代码管理UI,创建UI_HBox类用于创建HBox组...
来源: Laya3.0_文档 发布时间: 20241014
...ERROR, this, this.errorHandler); } private openHandler(event: any = null): void { //正确建立连接; } private receiveHandler(msg: any = null): void { ///接收到数据触发函数 } private closeHandler(e: any = null): void { //关闭事件 } private errorHandler(e: any = null): void { //连...
来源: Laya2.0_文档 发布时间: 20210714
...verallDuration:int = 2147483647, playStart:Number = 0, playEnd:Number = 0):void 播放动画。 AnimationPlayer playByFrame(index:int = 0, playbackRate:Number = 1.0, overallDuration:Number = 2147483647, playStartFrame:Number = 0, playEndFrame:Number = 0, fpsIn3DBuilder:int = 30):void 播放动画...
来源: Laya2.0_api 发布时间: 20190513
... } public function createUI(img:Image):void { this.img = img; maskSp = new Sprite(); maskSp.setSize(spSize); maskSp.pos(0,0); this.img.mask = mask...
来源: Laya_社区 发布时间: 20180404
...至Canvas Laya.init(550, 400, WebGL); setup(); } private function setup():void { var t1:Text = createText(); //设置不进行任何裁剪 t1.overflow = Text.VISIBLE; t1.pos(10, 10); var t2:Text= createText(); //设置不显示文本域外的字符像素 t2.overflow = Text.SCROLL; t2.pos(10, 110); v...
来源: Laya2.0_文档 发布时间: 20210715
...r vs = "uniform mat4 u_MvpMatrix; \n" + "attribute vec4 a_Position; \n" + "void main(){ \n " + "gl_Position = u_MvpMatrix * a_Position; \n " + "};"; var ps = "precision mediump float; \n" + "uniform vec4 u_StartColor; \n" + "uniform vec4 u_EndColor; \n" + "void main() { \n" + "gl_FragColor = mix(u_S...
来源: Laya_社区 发布时间: 20180316
...constructor() { } static gameLoading(name: string, onCompleted: Function): void { let uiResArray = [ { url: "res/atlas/common.json", type: Laya.Loader.ATLAS }, { url: "res/atlas/comp.json", type: Laya.Loader.ATLAS }, // 登录的UI和选角的UI { url: "res/atlas/user.json", type: Laya.Loader.ATLAS ...
来源: Laya_社区 发布时间: 20170905