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

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

901. UI-RadioGroup [ 62%]

....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时自动切换至Canvas L...

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

902. 急急急,如何设置按钮点击加载ani [ 62%]

...aths.Rectangle;     import laya.display.Stage;          public class LayaUISample {         private var skin:String = "https://layaair.ldc.layabox.co ... 3B%3B         private var aniPath:String = "https://layaair.ldc.layabox.co ... 3B%3B         public function L...

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

903. 图像组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 62%]

...。下面给出一个示例代码,实现脚本控制Image: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Image }) public img: Laya.Image; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件...

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

904. laya.net.URL_API3.0 [ 62%]

...cted All Inherited Externals Only exported Menu Globals "laya/net/URL" URL Class URL URL 提供URL格式化,URL版本管理的类。 引擎加载资源的时候,会自动调用formatURL函数格式化URL路径 通过basePath属性可以设置网络基础路径 通过设置customFormat函数,...

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

905. TimeLine.addLabel(label:String, offset:Number):TimeLine 亲测! 方法中第二个参数offset无效 [ 62%]

...么意思,二者有什么关系呢?   demo代码如下// 程序入口 class GameMain{ constructor() { Laya.init(600,400); var sp:Laya.Sprite = new Laya.Sprite(); sp.graphics.drawRect(0,0,50,50,"#ff8822"); Laya.stage.addChild(sp); var delay:number = 5000; var timeLine:Laya.TimeLine = new Laya.Ti...

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

906. ScrollRect设置会引起其他的UI资源无法正在显示 [ 62%]

...ort laya.ui.Image; import laya.utils.Handler; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var arr:Array = []; public function TestView() { super(); _path.pivot(0,...

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

907. 混合模式-Lighter [ 62%]

...Laya.Handler; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class BlendMode_Lighter { // 一只凤凰的分辨率是550 * 400 private phoenixWidth: number = 550; private phoenixHeight: number = 400; private bgColorTweener: Tween = new Tween(); private gradientInterval: number = 2000; ...

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

908. laya.d3.animation.AnimationTransform3D_API3.0 [ 62%]

...Menu Globals "laya/d3/animation/AnimationTransform3D" AnimationTransform3D Class AnimationTransform3D AnimationTransform3D 类用于实现3D变换。 Hierarchy EventDispatcher AnimationTransform3D Index Constructors constructor Methods event getWorldMatrix hasListener off offAll offAllCaller on once...

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

909. 2.0版本可用的CameraMoveScript.ts [ 62%]

....0,跟示例里效果一样的文件:   /** * ... * @author */ export class CameraMoveScript extends Laya.Script {      /** @private */     protected _tempVector3: Laya.Vector3 = new Laya.Vector3();     protected lastMouseX: number;     protected lastMouseY: number;     pro...

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

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

...项目 修改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