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

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

3751. 我用matter.js渲染一个篮球, 但是不会自动旋转.. 这个怎么设置呢? [ 46%]

...个篮球, 但是不会自动旋转.. 这个怎么设置呢? 付代码 : var ball_skin = new Laya.Sprite().loadImage("res/basketball.png"); ball_skin.pivot(ball_skin.width / 2, ball_skin.height / 2); this.ball = Matter.Bodies.circle(0, -100, 34, {     layaSprite: ball_skin, // 绑定一个laya的S...

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

3752. 用Geolocation获取地理位置信息(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 46%]

...m/s"); } // 获取位置失败后触发 function onError(err:Error):void { var errType:String; if (err.code = Geolocation.PERMISSION_DENIED) errType = "Permission Denied"; else if (err.code == Geolocation.POSITION_UNAVAILABLE) errType = "Position Unavailable"; else if (err.code == Geolocation.TIMEOU...

来源: Laya2.0_文档 发布时间: 20210715

3753. 用Geolocation获取地理位置信息(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 46%]

...m/s"); } // 获取位置失败后触发 function onError(err:Error):void { var errType:String; if (err.code = Geolocation.PERMISSION_DENIED) errType = "Permission Denied"; else if (err.code == Geolocation.POSITION_UNAVAILABLE) errType = "Position Unavailable"; else if (err.code == Geolocation.TIMEOU...

来源: Laya2.0_文档 发布时间: 20210715

3754. iphone6闪退 [ 46%]

...em/Library/Frameworks/JavaScriptCore.framework/JavaScriptCore and /private/var/mobile/Containers/Bundle/Application/6815AAA5-5DD9-4F5E-B035-86F46C8BD87F/layabox.app/layabox. One of the two will be used. Which one is undefined. 2017-11-27 16:20:55.044 layabox[644:298297] 当前应用软件版本:2.2 ...

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

3755. laya.d3.component.animation.KeyframeAnimations [ 46%]

...发生变化后调度。Component3DProperty Detail_playerpropertyprotected var _player:AnimationPlayer动画播放器。currentAnimationClipIndexproperty currentAnimationClipIndex:int  [read-only] 获取播放器的动画索引。 Implementation     public function get currentAnimationClipInd...

来源: laya_api 发布时间: 20170929

3756. tween complete 报错 以及如何判断对象正在缓动中 [ 46%]

...该值设为true。 注意complete()是Tween对象方法,你要这样  var tween:Tween = Laya.Tween.to(...); tween.complete(); 2017-11-22 1 0 分享 微博 QZONE 微信 wudi199553 赞同来自: http://ldc.layabox.com/doc/?nav=zh-js-1-5-1,这个是关于啊缓动的用法,因为你没给我...

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

3757. Tween的to方法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 [ 46%]

...来自: function begingame(){     console.log("开始游戏");     var Tween   = Laya.Tween;     gamebox.x = Laya.Browser.width;     gamebox.visible = true;     Laya.stage.addChild(gamebox);     // Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,);     Tween.to(beginbox,{x:...

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

3758. 版本管理 后缀可以自定吗? [ 46%]

.... 3. 生成manifest.json后 这个放到那里用呢? 试过这样不行 var manifest = { "v0.0.0.08a\/.DS_Store": "0.0.0.08a", "v0.0.0.08a\/CommonUI\/.DS_Store": "0.0.0.08a", "v0.0.0.08a\/CommonUI\/game\/01_1.png": "0.0.0.08a", "v0....

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

3759. laya.d3.graphics.VertexBuffer3D [ 46%]

...    public function get canRead():Booleancreateproperty public static var create:Function 创建VertexBuffer3D。 vertexCountproperty vertexCount:int  [read-only] 获取顶点个数。 Implementation     public function get vertexCount():intvertexDeclarationproperty vertexDeclaration:Ve...

来源: laya_api 发布时间: 20170929

3760. as hello world 背景还是黑色 [ 46%]

... { //初始化引擎 Laya.init(1136, 640); Laya.stage.bgColor = "#ffffff"; var sp : Label = new Label("hello world"); //sp.fontSize = 55; sp.pos(100, 100) ; //sp.color = "#000000"; Laya.stage.addChild(sp); } } } chrome 下查看源代码 <html> <head> <meta charset='utf-8'/> <ti...

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