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

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

271. HTMLDivElement 2.0 只有单行内容是 水平排版不居中 [ 66%]

...下方写   style:样式标签,比如:<div style='width:130px;height:50px;color:#ff0000'>abc</div>     * style支持的属性如下:      * italic:true|false;                   是否是斜体      * bold:true|false;                    ...

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

272. 2D聚光灯 · LayaAir3.3 · 引擎文档 · LAYABOX [ 65%]

..., 1); spotLightComponent.intensity = 1.0; spotLightComponent.innerRadius = 50; spotLightComponent.outerRadius = 200; spotLightComponent.innerAngle = 50; spotLightComponent.outerAngle = 150; } } 让此聚光灯照亮一个2D网格,最终的效果如图3-1所示, (图3-1) Copyright ©Layabox 2...

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

273. 鼠标交互-双指旋转(多点触控) [ 65%]

... Laya.stage.addChild(this.sp); this.sp.graphics.drawRect(0, 0, w, h, "#FF7F50"); this.sp.size(w, h); this.sp.pivot(w / 2, h / 2); this.sp.pos(Laya.stage.width / 2, Laya.stage.height / 2); this.sp.on(Event.MOUSE_DOWN, this, this.onMouseDown); } onMouseDown(e) { const Event = Laya.Event; // 手机上...

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

274. 点击拖动图片,当鼠标移出再移回舞台中时如何保持点击状态 [ 65%]

...s TestDemo { private var sp:Sprite; public function TestDemo() { Laya.init(500,500); Laya.stage.bgColor="#EEFFCC"; sp=new Sprite(); sp.graphics.drawRect(0,0,100,50,"#FF0000"); sp.size(100,50); // 设置轴心点为显示对象的中心,显示位置在可拖拽区域之内 sp.pivot(sp.width/2,sp.he...

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

275. layaAir真的没办法做涂鸦板? [ 65%]

...:43 发现可以使用这个方法 sp.graphics.drawLines(0, 0, [0, 0, 39, -50, 78, 0, 117, 50, 156, 0], "#ff0000", 5);涂鸦的时候不停的往哪个坐标数组加东西。不断清空重画,不会卡。。 138*****047 • 2018-08-21 18:33 @jweilan:大神,求一个示例代码,谢...

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

276. 摄像机跟随刚体移动,刚体出现抖动。 [ 65%]

...活动: 2020-05-15 01:43 浏览: 3332 关注: 9 人 彪 • 2020-04-06 10:50 小球.addChild(摄像机) 微笑着拒绝 • 2020-04-14 20:44 大佬,你这个摄像机是怎么实现跟随刚体的呢,求帮助... 时光机器 • 2019-10-20 08:48 怎么才能同步呢?放同父物体下会导致...

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

277. 请问laya中js如何继承自己写的类 [ 65%]

...都要使用import和export吗? 问题状态 最新活动: 2018-01-04 11:50 浏览: 2049 关注: 2 人 gls_laybox • 2018-01-04 11:54 不好意思放错了,是这个 /* * 父类t1 */ var t1 = (function () { function t1() { } //父类方法a t1.prototype.a = function(){ console.log(111); } retur...

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

278. 3d物理引擎有碰撞不触发onCollisionEnter [ 65%]

...f undefined     at PhysicsSimulation._updateCollisions (libs/laya.d3.js:15042)     at Scene3D._update (libs/laya.d3.js:18977)     at Stage.render (libs/laya.core.js:16632)     at Stage._loop (libs/laya.core.js:16572)     at loop (libs/laya.core.js:10515) 如果问题二没有出现,请...

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

279. 【北京朝阳门】Zenjoy求一枚LayaAir游戏开发(15K-30K) [ 65%]

...,欢迎来推! 简历接收邮箱:yiwei.ji@zenjoy.net 或咨询QQ:502567664(请备注接头暗号-LayaAir)   【LayaAir游戏开发工程师】薪资范围:15K-30K,可谈 职位描述: 1.使用LayaAir 负责H5 游戏/小游戏的前端开发; 2.负责接口设计、开发和维...

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

280. Label属性详解(TypeScript-IDE篇(TS)-IDE组件属性详解) [ 65%]

...tup(); } private setup(): void { this.createLabel("#FFFFFF", null).pos(30, 50); this.createLabel("#00FFFF", null).pos(290, 50); this.createLabel("#FFFF00", "#FFFFFF").pos(30, 100); this.createLabel("#000000", "#FFFFFF").pos(290, 100); this.createLabel("#FFFFFF", "#00FFFF").pos(30, 150); this.createL...

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