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

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

2511. Spine适配版(JavaScript-LayaAir基础篇(JS)-动画基础) [ 47%]

...却可以在舞台上显示多个动画。 代码示例: ```typescript export class SpineBinary { private aniPath = "res/bone/spineboy-pma.skel"; private templet:SpineTempletBinary; private skeleton:SpineSkeleton; private index: number = -1; constructor() { Laya.init(Browser.width, Browser.height,...

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

2512. laya.d3.core.render.posteffect.ScalableAO_API3.0 [ 47%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/d3/core/render/PostEffect/ScalableAO" ScalableAO Class ScalableAO BloomEffect 类用于创建环境光遮罩效果。 Hierarchy PostProcessEffect ScalableAO Index Constructors constructor Accessors...

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

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

...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

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

...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

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

...有范例 我这里提供一下其他的类型的范例供大家参考   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

2516. Sprite-容器 [ 47%]

...nt = Laya.Event; import Browser = Laya.Browser; import WebGL = Laya.WebGL; export class Sprite_Container { // 该容器用于装载4张猩猩图片 private apesCtn: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.sta...

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

2517. 缓动-简单的Tween [ 47%]

...wser = Laya.Browser; import Tween = Laya.Tween; import WebGL = Laya.WebGL; export class Tween_SimpleSample { constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_...

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

2518. 树状列表组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 47%]

...赋值的示例如下: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.Tree }) public tree: Laya.Tree; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { //初...

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

2519. [LayaAir3]3.10.0 box2d wasm版本 trigger事件无法触发 [ 47%]

...2.0的版本开始,我用ts编写的相关内容,都要使用import和export吗? LayaTree v1.0.5版本更新(2021.11.17) LayaAir3D UnityPlugin 使用须知-版本更新-问题解答(最新版本:1.7.16) 关于微信7.0.3版本之后的版本,微信小游戏 Android 端调整 “在...

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

2520. Config3D_API3.0 [ 47%]

...e layaair Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "Config3D" Config3D Class Config3D Config3D 类用于创建3D初始化配置。 Hierarchy Config3D Index Properties BVH_Min_Build_nums BVH_limit_size BVH_max_SpatialCount customResolution debugFrustumCul...

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