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

大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0111 秒)

441. 在iphone中UC浏览下支持 WebSocket吗? [ 84%]

... 12:49:45:3350 [Fiddler] No HTTP request was received from (admunch:4888) new client socket, port 55286. 12:49:45:3360 [Fiddler] No HTTP request was received from (admunch:4888) new client socket, port 55254. 12:49:45:3360 [Fiddler] No HTTP request was received from (admunch:4888) new client socket,...

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

442. 动画-SWF动画 [ 84%]

...WFPath = "res/swf/dragon.swf"; let MCWidth = 318, MCHeight = 406; let mc = new MovieClip(); Laya.stage.addChild(mc); mc.x = (Laya.stage.width - MCWidth) / 2; mc.y = (Laya.stage.height - MCHeight) / 2; mc.load(SWFPath); } } new Animation_SWF();module laya { import MovieClip = Laya.MovieClip; import S...

来源: Laya2.0_示例 发布时间: 20251130

443. 使用3D精灵 · LayaAir3.3 · 引擎文档 · LAYABOX [ 84%]

...看到子节点也跟随移动 this.layaMonkeyParent.transform.translate(new Laya.Vector3(-0.2, 0, 0); (动图3-2) 通过点击按钮,让子节点移动,可以看到父节点并没有移动 this.layaMonkeySon.transform.translate(new Laya.Vector3(-0.2, 0, 0); 四、克隆 关于克隆,LayaA...

来源: Laya3.0_文档 发布时间: 20251010

444. 怎么计算两个点之间的距离 [ 84%]

...eying 赞同来自: jinghuhuilai             var p1:Point = new Point(10,20);              var p2:Point = new Point(100,200);              var x:int = p1.x - p2.x;              var y:int = p1.y = p2.y;              var...

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

445. sprite做的按钮点击无反应? [ 84%]

...prite做的按钮点击无反应? 代码如下: var dialog_mc:Sprite = new Sprite(); Laya.stage.addChild(dialog_mc); var w:int = 110; var h:int = 40; var btn:Sprite = new Sprite(); btn.size(w, h); btn.graphics.drawRect((stageWd - w) * 0.5, (stageHt - h) * 0.5-50, w, h, "#FF7F50"); btn.graphics.f...

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

446. DOM元素-表单输入 [ 84%]

....scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#fff"; this.form = new Laya.Sprite(); this.form.size(250,120); this.form.pos((Laya.stage.width - this.form.width) / 2, (Laya.stage.height - this.form.height) / 2); Laya.stage.addChild(this.form); this.rowHeight = 30; this.rowSpacing = 10; let r...

来源: Laya2.0_示例 发布时间: 20251130

447. 限制模型旋转角度 [ 84%]

...RotationEuler获取的角度,然后我再用transform.localRotationEuler=new Vector3(60,0,0),这个时候是北极正朝向观众,前提必须y和z的值是0,如果y值变化,比如transform.localRotationEuler=new Vector3(60,30,0),发现北极歪了 transform.localRotationEuler=new Vecto...

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

448. BlurFilter模糊滤镜没有效果呢 [ 84%]

... 2017-05-18 0 1 分享 微博 QZONE 微信 riven 赞同来自: let image = new Image(); image.skin = urlImage;let blurFilter = new BlurFilter(); blurFilter.strength = 5; image.filters = [blurFilter]; 2017-05-18 0 0 分享 微博 QZONE 微信 cuixueying 赞同来自: 最好给个可以运行的例子...

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

449. LayaAir IDE 2.2.0beta2版本2d粒子不能用了,LayaAir IDE 2.1.0版本正常 [ 84%]

...    at ParticleShader.recreateResource (libs/laya.core.js:2529)     at new Shader (libs/laya.core.js:2492)     at new ParticleShader (libs/laya.particle.js:272)     at new ParticleShaderValue (libs/laya.particle.js:283)     at new ParticleTemplate2D (libs/laya.particle.js:301)     at Par...

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

450. 屏幕适配-自动竖屏 [ 84%]

...32628"; this.showText(); } showText() { const Text = Laya.Text; let text = new Text(); text.text = "Orientation-Portrait"; text.color = "gray"; text.font = "Impact"; text.fontSize = 50; text.x = Laya.stage.width - text.width >> 1; text.y = Laya.stage.height - text.height >> 1; Laya.stage.addChild(te...

来源: Laya2.0_示例 发布时间: 20251130