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

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

81. 垂直滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 58%]

...his.vscroll.skin = "atlas/comp/vscroll.png";//滚动条皮肤 this.vscroll.width = 300;//滚动条的宽度 this.vscroll.pos(300, 300);//滚动条的位置 this.vscroll.min = 0;//滑块的最小滚动位置 this.vscroll.max = 10;//滑块的最大滚动位置 this.vscroll.scrollSize = 1;//点击按...

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

82. 使用对象池重复使用skeleton报错,请问有解决方案吗?谢谢 [ 57%]

...e; var mCurrSkinIndex = 0; (function() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); startFun(); })(); function startFun() { mAniPath = "res/spine/spineRes1/dragon.sk"; mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplet...

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

83. 能不能添加一个控件可以让文字和组件实现弹性滚动啊 [ 55%]

...l; var Text = Laya.Text; var text = new Text(); text.wordWrap = true; text.width = 100; text.text = '哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈哈...

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

84. 物理引擎-Slingshot [ 55%]

... Laya.Render; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var stageWidth = 800; var stageHeight = 600; var Matter = window.Matter; var LayaRender = window.LayaRender; var mouseConstraint; var engine; (function() { Laya.init(stageWidth, stageHeight); Laya.stage.alignV = Stage.ALIGN_MIDDLE; La...

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

85. 开放数据域组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 51%]

...形式定义开放数据域的样式和布局 let style = { container: { width: 400, height: 200, backgroundColor: "#ffffff", justifyContent: "center", alignItems: "center", }, testText: { color: "#ffffff", width: "100%", height: "100%", lineHeight: 200, fontSize: 40, textAlign: "center", }, // 文...

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

86. HTTP通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 50%]

...= "#FFFFFF"; this.text.font = "Impact"; this.text.fontSize = 25; this.text.width = 800; this.text.anchorX = 0.5; this.text.align = "center"; this.text.y = 20; this.text.centerX = 0; this.owner.addChild(this.text); } /** * 发起HTTP连接请求 */ private connect(): void { //创建HttpRequest对象 ...

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

87. socket大型项目回调 [ 48%]

...法完成缓动后的回调怎么写,Tween.to(beginbox,{x:-Laya.Browser.width},1000,null,aaa,0,false);aaa是一个测试方法 load 加载完图集 回调函数可以传形参吗? socket监听 创建树Tree 该怎么回调mouseHandler 形参该传什么 Laya.loader.create 进度回调函数执...

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

88. 资源加载 · LayaAir3.4 · 引擎文档 · LAYABOX [ 48%]

...去下载Meta(json)文件 [key: string]: any; } TextureConstructParams { width?: number, height?: number, format?: TextureFormat, mipmap?: boolean, canRead?: boolean, sRGB?: boolean, } TexturePropertyParams { wrapModeU?: number, wrapModeV?: number, filterMode?: FilterMode, anisoLevel?: number, premu...

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

89. laya.display.Scene_API3.0 [ 47%]

...Through name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation glob...

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

90. laya.ui.View_API3.0 [ 47%]

...Through name tag drawtocanvCtx unDestroyedScenes Accessors _isHeightSet _isWidthSet active activeInHierarchy alpha anchorX anchorY blendMode bottom cacheAs centerX centerY components customRenderEnable destroyed displayHeight displayWidth displayedInStage drawCallOptimize filters globalRotation glob...

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