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

大约有 2,482 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0078 秒)

1061. 请问laya里的单件模式Singleton怎么实现? [ 70%]

...合绝大多数开发者的语法习惯,在js原生下是没有private、public、protected等修饰符的,故编译成html5项目后该功能无效! 2016-11-07 0 0 分享 微博 QZONE 微信 laya21126 赞同来自:   //================================= 单例实现 ======================  ...

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

1062. 输入设备-贪吃蛇(重力感应) [ 70%]

...h + this.height, this.height, "#FF7F50"); } // 获取关节另一头位置 public getPinPosition():Point { var radian:number = this.rotation * Math.PI / 180; var tx:number = this.x + Math.cos(radian) * this.width; var ty:number = this.y + Math.sin(radian) * this.width; return new Point(tx, ty); } } ...

来源: Laya_示例 发布时间: 20260106

1063. laya.d3.core.particleshuriken.module.ColorOverLifetime_API3.0 [ 70%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/particleShuriKen/module/ColorOverLifetime" ColorOverLifetime Class ColorOverLifetime ColorOverLifetime 类用于粒子的生命周期颜...

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

1064. 移动端横竖屏适配(类似锁屏效果)? [ 70%]

...同来自: package { import laya.events.Event; import laya.utils.Browser; public class ShiPei { private var fillWidth:Number=Browser.width; private var fillHeight:Number=Browser.height; public function ShiPei() { //设置初始化 Laya.init(fillWidth,fillHeight); //设置横屏显示 Laya.stage.scre...

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

1065. laya.d3.text.TextMesh_API3.0 [ 70%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/text/TextMesh" TextMesh Class TextMesh TextMesh 类用于创建文本网格。 Hierarchy TextMesh Index Constructors constructor Accessors co...

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

1066. laya.utils.SpriteUtils_API3.0 [ 70%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/utils/SpriteUtils" SpriteUtils Class SpriteUtils Hierarchy SpriteUtils Index Methods fitDOMElementInArea getGlobalPosAndScale getTransformRelati...

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

1067. 自定义shader 在未指定webgl 模式下 setIBVB参数应该如何设置 [ 70%]

...指定webgl 模式下 setIBVB参数应该如何设置 //重写渲染函数 public //重写渲染函数 public customRender(context:Laya.RenderContext,x:number,y:number):void{ this.shaderValue.iTime += this.animeValue; let webgl2d = context.ctx instanceof Laya.WebGLContext2D if( webgl2d) (context.ctx...

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

1068. laya.d3.core.particleshuriken.module.SizeOverLifetime_API3.0 [ 70%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/particleShuriKen/module/SizeOverLifetime" SizeOverLifetime Class SizeOverLifetime SizeOverLifetime 类用于粒子的生命周期尺寸...

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

1069. laya.device.media.Media_API3.0 [ 70%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/device/media/Media" Media Class Media Media用于捕捉摄像头和麦克风。可以捕捉任意之一,或者同时捕捉两者。getCamera...

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

1070. 用JS原生态window.location.href跳转 [ 70%]

... laya.display.Sprite; import laya.events.Event; import laya.utils.Browser; public class LayaAirTest { public function LayaAirTest() { Laya.init(550,400); var sp:Sprite=new Sprite(); sp.graphics.drawRect(0,0,100,100,"#FFFF00"); Laya.stage.addChild(sp); sp.size(1000,100); sp.on(Event.CLICK,this,onClic...

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