大约有 1,751 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0118 秒)
Laya_社区(1103) Laya2.0_文档(182) Laya3.0_api(114) Laya2.0_api(105) Laya2.0_示例(83) Laya_示例(70) laya_api(64) Laya3.0_文档(30)
...laya.events.Event; import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(600, 400); ...
来源: Laya_社区 发布时间: 20170608
...度报错? // 尝试获取当前位置 Geolocation.getCurrentPosition( Handler.create(this, onSuccess), Handler.create(this, onError) ); // 成功获取位置后触发 function onSuccess(info:GeolocationInfo):void { trace('经纬度: (' + info.longitude + '°, ' + info.latitude + '°),精确度...
来源: Laya_社区 发布时间: 20180402
... ttfloader.fontName = "ubuntu"; ttfloader.err = Laya.Handler.create(this, () => { console.log("加载失败ubuntu-bold.ttf"); }); ttfloader.complete = Laya.Handler.create(this, () => { ...
来源: Laya_社区 发布时间: 20220330
...create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh")); monster1.transform.position = new Laya.Vector3(...
来源: Laya_示例 发布时间: 20260820
...import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; private var apeTexture:Texture; public function Main() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser....
来源: Laya2.0_文档 发布时间: 20210715
...息文件 ResourceVersion.enable("version.json?"+Math.random(), Handler.create(this, beginLoad)); 熊猫大侠 • 2018-09-07 16:44 @155*****359:加载的时候 后面跟一个随机数 每次都会拉取最新的 155*****359 • 2018-09-07 17:00 嗯嗯,明白了。多谢朋友! 。。...
来源: Laya_社区 发布时间: 20180518
...GL; import laya.display.Sprite; import laya.ui.Panel; import laya.utils.Handler; public class LayaSample { private var rule_ct; public function LayaSample() { Laya.init(640, 1136, WebGL); Laya.stage.bgColor = "#CCBBAA"; var panel = new Panel(); Laya.stage.addChild(panel); panel.si...
来源: Laya_社区 发布时间: 20170215
...ion;Laya.Tween.to(box.potOld,{ x:1 ,y:2 ,update:new Laya.Handler(box,function(){ this.transform.position = this.potOld; }) }, ConstValue.animationTime,Laya.Ease.elasticOut,Laya.Handler.create(this, function(){ console.log("complete"); }),ConstValue.animation...
来源: Laya_社区 发布时间: 20170905
...ngle; import laya.net.Loader; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private const AniConfPath:String = "fighter/fighter.json"; public function LayaAirDemo() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, ...
来源: Laya_社区 发布时间: 20170628
...Sprite; var TextInput = Laya.TextInput; var Event = laya.events.Event; var Handler = Laya.Handler; var ProgressBar = laya.ui.ProgressBar; var Button = Laya.Button; var Dialog = Laya.Dialog; var Images = Laya.Image; var SKEvent = Laya.Event; var Socket = Laya.Socket; var Byte = Laya.Byte; var Loader ...
来源: Laya_社区 发布时间: 20201001