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

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

751. laya.display.Animation [ 50%]

...度。 Sprite wrapMode : int = 0播放顺序类型:AnimationBase.WRAP_POSITIVE为正序播放(默认值),AnimationBase.WRAP_REVERSE为倒序播放,AnimationBase.WRAP_PINGPONG为pingpong播放(当按指定顺序播放完结尾后,如果继续播发,则会改变播放顺序)。AnimationBase...

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

752. replaceSlotSkinName对于spine换肤不成功 [ 50%]

...n0 : Laya.Skeleton; skeleton0 = this.m_templet.buildArmature(1); skeleton0.pos(200,700); skeleton0.showSkinByIndex(1); Laya.stage.addChild(skeleton0); skeleton0.replaceSlotSkinName("head","goblin/head","goblingirl/head"); skeleton0.play("walk",true,true,0,0,true); } } new GameMain();   2018-01-26 ...

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

753. laya.ui.List [ 50%]

...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分别设置x和y属性。 因为返回值为Sprite对象本身,所以可以使用如下语法:spr.pos(...).sca...

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

754. 缓动画Bug,给了回调函数之后是直接过时间后执行回调函数,但是之前的缓动画不会执行 [ 50%]

...素 骨骼动画播放完后的回调时间 TypeScript下HttpRequest发送Post请求有Bug? 用了第三方socket类 项目在IDE上可以连接正常运行,为什么打包APK之后在手机上就连接不上socket 1.7.20beta有bug,帧属性面板打不开 Text类中竟然没有pos函数的api~ ...

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

755. Laya无法把截屏然后转Base64. [ 50%]

...htmlCanvas);//使用htmlCanvas创建Texture * var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 * sp.graphics.drawTexture(texture);//把截图绘制到精灵上 * Laya.stage.addChild(sp);//把精灵显示到舞台 * * <p>也可以获取原始图片数据,分享...

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

756. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 50%]

...     this.label.color = "#7CFC00";             this.label.pos(500, 400);               this.label.width = 300; this.label.align = "center"; // this.label.stroke = 1; this.label.strokeColor = "#000000";             this.label.zOrder=9980           ...

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

757. 关于环形进度条,进度不能重置问题 [ 50%]

...aya.Sprite; this.box = new Sprite(); this.box.cacheAs = "bitmap"; this.box.pos(0,0); this.say.addChild(this.box); this.draw = new Sprite(); this.box.addChild(this.draw); this.draw.graphics.drawPie(this.say.width/2, this.say.height/2, this.say.width/2+9,0,this.angle, "#ffffff"); this.circle = new Spr...

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

758. 关于闭包的问题 [ 50%]

...,这个详情可以参考API)   换一种理解思路大概就是:pos()调整的x,y相当于用pading去调整元素位置,而pivot()相当于用margin去调整元素位置   不造底层实现具体是什么样子的,这仅仅是个人理解。 2018-08-13 0 0 分享 微博 QZONE 微信 ...

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

759. laya.device.media.Video [ 50%]

...值为Sprite对象本身,所以可以使用如下语法:spr.pivot(...).pos(50, 100); Sprite  play():void 开始播放视频。 Video pos(x:Number, y:Number, speedMode:Boolean = false):Sprite 设置坐标位置。相当于分别设置x和y属性。 因为返回值为Sprite对象本身,所以...

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

760. laya.d3.physics.PhysicsSimulation_API3.0 [ 50%]

...lag: number = 1 Returns void shapeCast shapeCast(shape: ColliderShape, fromPosition: Vector3, toPosition: Vector3, out?: HitResult, fromRotation?: Quaternion, toRotation?: Quaternion, collisonGroup?: number, collisionMask?: number, allowedCcdPenetration?: number): boolean Defined in laya/d3/physics/...

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