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

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

811. 角色控制器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 58%]

...位置,通常应用于获取角色当前位置,或者设置角色位置始化(例如出生点与传送点)等需求。 代码设置示例如下: const { regClass, property } = Laya; @regClass() export default class DirectMove extends Laya.Script { declare owner: Laya.Sprite3D; private c...

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

812. laya.ui.Button [ 58%]

...建并添加控件子节点。 Button  initialize():void[override] 控件始化。 Button  measureHeight():Number[override] 显示对象的实际显示区域高度(以像素为单位)。 Button  measureWidth():Number[override] 显示对象的实际显示区域宽度(以像素为单位...

来源: Laya2.0_api 发布时间: 20190513

813. [0]laya-zip游戏加载提速库(Laya3.0版本适配更新) [ 58%]

...加入一行:[code]loadLib("libs/laya-zip.js")[/code] 在Main.ts中Laya始化后加入:[code]LayaZip.Init();[/code]Laya 3.x版本 下载扩展包laya-zip 解压后,将laya-zip.js和laya-zip.d.ts文件放入项目中,IDE中勾选并应用 在Main.ts中 onStart()中加入:[code]LayaZip.Init...

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

814. laya.ui.Box [ 58%]

...:void 创建并添加控件子节点。 Component initialize():void 控件始化。 Component onCompResize():void 父容器的 Event.RESIZE 事件侦听处理函数。 Component preinitialize():void 预始化。 Component resetLayoutX():void 重置对象的 X 轴(水平方向)布局。...

来源: laya_api 发布时间: 20170929

815. laya.ui.ScaleBox [ 58%]

...oid 创建并添加控件子节点。 UIComponent initialize():void 控件始化。 UIComponent measureHeight():Number 显示对象的实际显示区域高度(以像素为单位)。 UIComponent measureWidth():Number 显示对象的实际显示区域宽度(以像素为单位)。 UICompo...

来源: Laya2.0_api 发布时间: 20190513

816. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 58%]

...r; import laya.webgl.WebGL; public class Main { public function Main() { //始化舞台 Laya.init(1334,750,WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //原始位图 createImg(100,50); //发光滤镜 creteGlowFilter(); //阴影滤镜 createShadeFilter(); } /**创建发光滤...

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

817. 屏幕适配 · LayaAir3.4 · 引擎文档 · LAYABOX [ 58%]

... Laya.stage.designWidth = 1080; Laya.stage.designHeight = 1920; //在引擎始化之后改变舞台设置的话,必须要手动调用一次updateCanvasSize方法,否则不会生效 Laya.stage.updateCanvasSize(); } } 1.7 画布宽高 众所周知,<canvas>是HTML5中的画布,其 widt...

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

818. laya.ui.Box [ 57%]

...oid 创建并添加控件子节点。 UIComponent initialize():void 控件始化。 UIComponent measureHeight():Number 显示对象的实际显示区域高度(以像素为单位)。 UIComponent measureWidth():Number 显示对象的实际显示区域宽度(以像素为单位)。 UICompo...

来源: Laya2.0_api 发布时间: 20190513

819. 有关Laya3D碰撞检测疑问 [ 57%]

...aya.Scene;  this._outHitAllInfo = new Array<Laya.RaycastHit>();  //始化照相机 this.camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; this.camera.transform.translate(new Laya.Vector3(0, 2, 5)); this.camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false);...

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

820. laya.ui.VBox [ 57%]

...:void 创建并添加控件子节点。 Component initialize():void 控件始化。 Component onCompResize():void 父容器的 Event.RESIZE 事件侦听处理函数。 Component preinitialize():void 预始化。 Component resetLayoutX():void 重置对象的 X 轴(水平方向)布局。...

来源: laya_api 发布时间: 20170929