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

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

1191. 2D光遮挡器与阴影 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...后,加入下述代码,实现一个光遮挡器的效果: const { regClass, property } = Laya; @regClass() export class LightOccluder extends Laya.Script { private spotLight: Laya.Sprite = new Laya.Sprite(); private background: Laya.Sprite = new Laya.Sprite(); private lightOccluder: Laya.Sprit...

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

1192. VScrollBar属性详解(JavaScript-IDE篇(JS)-IDE组件属性详解) [ 56%]

....layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=UI&class=laya.ui.VScrollBar)。 ​ VScrollBar 组件的图像资源示例: ​ ![图片0.png](img/1.png) ​ (图1) ​ ![图片0.png](img/2.png) ​ (图2) ​ ![图片0.png](img/3.png) ​ (图3) ​ ![图片0.p...

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

1193. 经验分享:如何控制龙骨动画的播放索引! [ 56%]

...ni.bone.Templet; import laya.events.Event; import laya.webgl.WebGL; public class DragonDemo { private var mFactory:Templet; private var mArmature:Skeleton; private var index:int;//帧频 private var time:Number; public function DragonDemo() { Laya.init(800,600,WebGL); index=15; mFactory=new Templet(...

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

1194. Error: 代码包大小为 5533 kb,上限为 4096 kb,请删除文件后重试? [ 56%]

...文件后重试? 我就弄了一个测试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp);...

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

1195. 动画-旧版骨骼动画 [ 56%]

....utils.Stat; import common.CameraMoveScript; /** * ... * @author */ public class SkinAnimation_Old { private var zombie:Sprite3D; private var changeActionButton:Button; private var curStateIndex:int = 0; private var skinAniUrl:Array = [ "../../../../res/threeDimen/skinModel/Zombie/old/Assets/Zombie/...

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

1196. Spine动画使用(ActionScript-LayaAir基础篇(AS3)-动画基础) [ 56%]

...打开链接查看:[https://layaair.ldc.layabox.com/api/?category=Bone&class=laya.ani.bone.Skeleton](https://layaair2.ldc2.layabox.com/api2/Chinese/index.html?version=2.9.0beta&type=2D&category=Animation&class=laya.ani.bone.Skeleton) 创建 SpineDemo.js,代码编写如下: ```javascript //初...

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

1197. 对话框点击空白处真的无法关闭 [ 56%]

...Dialog.super(this); this.name = 'SelectColorDialog'; this.x = 1013; } Laya.class(selectColorDialog, "SelectColorDialog", testUI); return selectColorDialog; }());调用对话框的方法 var dialog = new SelectColorDialog(); dialog.show(); 附件 : --> testCloseDialog.rar 2018-03-26 添加评论 免...

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

1198. 限制区域拖动效果,为什么会无法限制呢? [ 56%]

...unction onStartDrag(e) { this.startDrag(dragRegion, true, 100); } }  Laya.class(GolfMainUI, "GolfMainUI", GolfMainPageUI);  //初始化DEBUG //初始化微信小游戏 Laya.MiniAdpter.init(); //程序入口 Laya.init(500,800, WebGL);  Laya.stage.scaleModel = "full";  // DebugTool.init() //激活...

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

1199. laya.maths.Matrix4x4_API3.0 [ 56%]

...ited Externals Only exported Menu Globals "laya/maths/Matrix4x4" Matrix4x4 Class Matrix4x4 Matrix4x4 类用于创建4x4矩阵。 Hierarchy Matrix4x4 Implements IClone Index Constructors constructor Properties elements DEFAULT DEFAULTINVERT ZERO Methods clone cloneByArray cloneTo decomposeTransRotMat...

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

1200. Handler.create的回收问题 [ 56%]

...aya.Text; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Test { private h1: Laya.Handler; private h2: Laya.Handler; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; L...

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