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

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

951. 分享一个自己做的游戏公告功能,跑马灯效果 [ 52%]

...Element import Sprite = Laya.Sprite import Box = Laya.Box /** 公告栏 */ export default class Notice extends View { /** 滚动区域 */ hornBox: Box /** html对象 */ html: HTMLDivElement /** 滚动框的宽度 */ defaultX = 1110 /** 动画是否出于播放状态 */ isPlayIng:boolean = false /** ...

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

952. 模拟石头下落过程不明抖动 [ 52%]

...aui/aui'; import { Game } from './public/Game'; import Stage = Laya.Stage; export class TexasMain{ private balls:Laya.Sprite = ; constructor(){ Config.isAntialias = true // alert("宽"+Laya.Browser.clientWidth+"高"+Laya.Browser.clientHeight ); // Laya.init(Laya.Browser.clientWidth,Laya.Browser.clie...

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

953. 2.0里面的组件(Laya.Script)的prop其中几个类型应该怎么设置 [ 52%]

...有范例 我这里提供一下其他的类型的范例供大家参考   export default class TestScript extends Laya.Script { /** @prop {name:intType, tips:"整数类型示例", type:Int, default:1000}*/ public intType: number = 1000; /** @prop {name:numType, tips:"数字类型示例", type:Number...

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

954. 计时器-延迟执行 [ 52%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Timer_DelayExcute { private button1: Sprite; private button2: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Sta...

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

955. laya.components.AnimatorController2D_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/components/AnimatorController2D" AnimatorController2D Class AnimatorController2D 2D动画控制器 Hierarchy Resource AnimatorController2D Index Constructors constructor Properties _id destroyedImm...

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

956. laya.physics.PolygonCollider_API3.0 [ 52%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/physics/PolygonCollider" PolygonCollider Class PolygonCollider 2D多边形碰撞体,暂时不支持凹多边形,如果是凹多边形,先手动拆分为多个凸多边形 节点个数最多...

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

957. 关于graphics.drawPath手机端和PC端不一致的问题 [ 52%]

... Stage = Laya.Stage; import WebGL = Laya.WebGL; import Event = Laya.Event; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.s...

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

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

... 赞同来自: /** * FUI资源加载类 * jhj * QQ:8510001 * 2019-11-25 */ export default class FguiResMgr { private static _instance: FguiResMgr; public static get instance(): FguiResMgr { if (!this._instance) this._instance = new FguiResMgr(); return this._instance; } /**加载优先级,越小...

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

959. laya.resource.AtlasResource_API3.0 [ 51%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/resource/AtlasResource" AtlasResource Class AtlasResource 大图合集资源 Hierarchy Resource AtlasResource Index Constructors constructor Properties _id destroyedImmediately dir frames lock name...

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

960. HTTP通信 · LayaAir3.4 · 引擎文档 · LAYABOX [ 51%]

...ort HttpRequest = Laya.HttpRequest; const { regClass } = Laya; @regClass() export class Network_GET extends Laya.Script { private hr: HttpRequest; private logger: Laya.TextArea; private text: Laya.Label = new Laya.Label(); onAwake(): void { this.initUI(); this.connect(); } /** * 初始化UI */ priva...

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