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

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

2421. Spine 间隔一段时间卡顿5000毫秒左右,期间GPU占用极高, Demo已上传 [ 48%]

...ya.Stat; import Templet = Laya.Templet; import Skeleton = Laya.Skeleton;  class Main {  constructor() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Stat.show();  //棋子动画 this.genSpine("res/spine/ludo_qizidongzuo.skel", Laya.Handler.create(this, (templet: Laya.SpineTemplet) =&...

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

2422. laya.d3.physics.constraints.ConfigurableConstraint_API3.0 [ 48%]

...laya/d3/physics/constraints/ConfigurableConstraint" ConfigurableConstraint Class ConfigurableConstraint ConfigurableConstraint类用于可设置的约束组件 Hierarchy ConstraintComponent ConfigurableConstraint Index Constructors constructor Properties _extra _singleton disableCollisionsBetweenLin...

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

2423. 编译Typescript项目时卡死,通过node断点调试layaair-cmd,已定位是tsSort.js问题 [ 48%]

...项目 修改src/LayaSample.ts import WebGL = Laya.WebGL; // 程序入口 class GameMain{ constructor() { Laya.init(600,400, WebGL); } static wallet:com.battlecry.idle_m.data_proto.WalletModel; } new GameMain();        然后编译就卡死         Bug调试: 经过node inspect 发现是l...

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

2424. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 47%]

...位是没错,而且都是整数的移动地图的。   export default class MapSprite extends Laya.Image{ isShow:boolean = false; name:string = ""; constructor() { super(); }  loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x...

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

2425. ToolTip鼠标悬停的使用 [ 47%]

...aya.utils.Browser; import laya.utils.Handler; import ui.TestTipsUI; public class ToolTipDemo { private var _testTip:TestTipsUI;//ui弹框(IDE发布),用于鼠标悬浮提示框 private var _tip:TipManager;//实例化TipManager public function ToolTipDemo() { Laya.init(Browser.width,Browser.hei...

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

2426. 微信小游戏无法用bin目录调试,只能发布后在release/wxgame/中调试 [ 47%]

...function/",  运行报错 gameContext?id=1:58 libs/laya.ui.js: TypeError: Class constructor Component cannot be invoked without 'new' at new Widget (laya.ui.js:201) at laya.ui.js:349 at laya.ui.js:1 at wrapFn (gameContext?id=1:51) at require (VM505 WAGameSubContext.js:2) at a (VM505 WAGameSubContex...

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

2427. ComboBox属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 47%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.ComboBox)。 ​ ComboBox 组件的图像资源示例: ​ ![图片0.png](img/1.png) ​ (图1) ​ 设置 ComboBox 的属性 labels 的值为 “label1,label2” 后,显示效果如下: ​ 常态: ...

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

2428. 图片像素精准点击问题! [ 47%]

... on(Laya.Event.MOUSE_DOWN 来检测。   下面是我的代码处理: class demo { private down:Laya.Image; constructor() { // 鼠标事件 Laya.stage.on(Laya.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(Laya.Event.MOUSE_MOVE, this, this.onMouseMove); Laya.stage.on(Laya.Event.MOUSE_UP...

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

2429. 碰撞器过滤(ActionScript-3D基础(AS3)-LayaAir3D之物理系统) [ 47%]

...yabox.com/api2/Chinese/index.html?version=2.9.0beta&type=3D&category=Utils&class=laya.d3.utils.Physics3DUtils),一个物体同一时间所属碰撞分组是唯一的。 关于能产生碰撞的碰撞组这个属性,如果只能与单个组碰撞那么使用Physics3DUtils的分组赋值就行。 ...

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

2430. 怎么像canvas那样做到每次循环去清空一次画布,我发现每次画的时候他会把上一次的坐标也画出来,导致变形了,该如何让他每次累加的同时清空上次的路径 [ 47%]

...次累加的同时清空上次的路径 var sp; var x = 0; export default class Scene extends Laya.Sprite{ constructor(){ super(); Laya.init(500, 300, Laya.WebGL); var bg = new Laya.Sprite(); bg.loadImage("comp/hunter.jpg"); this.addChild(bg); Laya.timer.frameLoop(1,this,this.move); // drawSomething...

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