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

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

1521. laya接入fairyGUI的时候资源加载方式? [ 62%]

...*/ export default class FguiResMgr { private static _instance: FguiResMgr; public static get instance(): FguiResMgr { if (!this._instance) this._instance = new FguiResMgr(); return this._instance; } /**加载优先级,越小越优先,最小为0 */ private priority: number = 1; /** * 混合加载...

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

1522. 文本-自动调整文本尺寸 [ 62%]

...ort laya.display.Text; import laya.utils.Browser; import laya.webgl.WebGL; public class Text_AutoSize { public function Text_AutoSize() { // 不支持WebGL时自动切换至Canvas Laya.init(550, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.s...

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

1523. 2.0下资源加载和销毁内存问题 [ 62%]

...szurl=url; if(url==null){ this.graphics.clear(); }else{ this.skin=url; } } public disp(){ this.skin=""; if(this.szurl){ Laya.loader.clearRes(this.szurl,true); //***2.0这里写法为Laya.loader.clearRes(this.szurl); } } public set url(value:string){ this.onUrlChangeHandler(value); } } 然后在首...

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

1524. laya.d3.core.Bounds_API3.0 [ 62%]

...Preparing search index... The search index is not available ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/Bounds" Bounds Class Bounds Bounds 类用于创建包围体。 Hierarchy Bounds Implements IClone Index Constructors constructor Propert...

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

1525. UI-RadioGroup [ 62%]

...rt laya.ui.RadioGroup; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_RadioGroup { private const SPACING:int = 150; private const X_OFFSET:int = 200; private const Y_OFFSET:int = 200; private var skins:Array; public function UI_RadioGroup() { // 不支持WebGL时自动切换至C...

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

1526. UI-RadioGroup [ 62%]

...rt laya.ui.RadioGroup; import laya.utils.Handler; import laya.webgl.WebGL; public class UI_RadioGroup { private const SPACING:int = 150; private const X_OFFSET:int = 200; private const Y_OFFSET:int = 200; private var skins:Array; public function UI_RadioGroup() { // 不支持WebGL时自动切换至C...

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

1527. laya.d3.renderobjs.renderobj.RenderContext3DOBJ_API3.0 [ 61%]

...ring search index... The search index is not available layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/RenderObjs/RenderObj/RenderContext3DOBJ" RenderContext3DOBJ Class RenderContext3DOBJ Hierarchy RenderContext3DOBJ Implements IRenderContext3D...

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

1528. laya.ui.CheckBox [ 61%]

...ames No Frames CheckBoxProperties | Methods | Events Packagelaya.uiClasspublic class CheckBoxInheritanceCheckBox Button Component Sprite Node EventDispatcher Object CheckBox 组件显示一个小方框,该方框内可以有选中标记。 CheckBox 组件还可以显示可选的文本标签,...

来源: laya_api 发布时间: 20170929

1529. Sprite3D-Sprite3D变换 [ 61%]

...aya.utils.Handler; import laya.utils.Stat; import common.CameraMoveScript; public class Sprite3DTransform { private var scene:Scene; private var layaMonkey1:Sprite3D; private var layaMonkey2:Sprite3D; private var layaMonkey3:Sprite3D; private var _position:Vector3 = new Vector3(-0.6, 0, 0); private ...

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

1530. 性能统计面板介绍(ActionScript-2D进阶篇(AS3)-性能优化) [ 61%]

...: Demo.as编写代码如下: ```java package { import laya.utils.Stat; public class Demo { public function Demo() { //初始化舞台 Laya.init(1334,750); //调用性能统计面板方法,(0,0)为面板位置坐标 Stat.show(0,0); } } } ``` ### 2、FPS相关的介绍 ### 2.1 FPS概述 FPS是...

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