大约有 422 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0060 秒)
Laya_社区(249) Laya3.0_文档(36) Laya_示例(33) Laya2.0_文档(30) Laya3.0_api(25) Laya2.0_api(20) Laya2.0_示例(15) laya_api(14)
...ion 的createFrames 使用已经加载的图集缓存动画失败 new Laya.Sprite();绘制图形以后,怎么删除释放资源? 编辑了图片 执行代码说加载不出来资源 这个是怎么回事? 打包出来后的APP打开加载速度过慢,有黑屏,如何加入闪屏图片 1.8....
来源: Laya_社区 发布时间: 20191115
...Text = Laya.Text; import Image = Laya.Image; import Sprite = Laya.Sprite; export class SmartScale_T { //适配模式 private modes:string = "exactfit"; //全局文本信息 private txt: Text...
来源: Laya2.0_文档 发布时间: 20200307
...ass() export class Main extends Laya.Script { @property({ type: Laya.Sprite }) public player: Laya.Sprite; @property({ type: Laya.Sprite }) public joystick: Laya.Sprite; @property({ type: Laya.Sprite }) public map: Laya.Sprite; @property({ type: Laya.S...
来源: Laya_社区 发布时间: 20251125
...答(最新版本:1.7.16) TS项目使用matter.js库无智能提示 sprite3d怎样使用Laya.Tween.to来做缓动呢?比如position或者scale LayaAirIDE下如何使用mask? 使用3D时候,Property 'getComponentByType' does not exist on type 'Node'. 微信小游戏如何使用ttf字体?...
来源: Laya_社区 发布时间: 20190802
...e; var Text = Laya.Text; var Stat = Laya.Stat; var WebGL = Laya.WebGL; var Sprite = Laya.Sprite; var Animation = Laya.Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character...
来源: Laya_示例 发布时间: 20260303
...irection = new Laya.Vector3(0, -1.0, -1.0); var grid = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticModel/grid/plane.lh")); var layaMonkey = scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh")); layaMonkey.once(Laya.Event.HIERARCHY_LOADED, th...
来源: Laya_示例 发布时间: 20260303
....PERIOD_SCENE** :shader变量提交周期,逐场景。 **Shader3D.PERIOD_SPRITE ** :shader变量提交周期,逐精灵和相机,注:因为精灵包含MVP矩阵,为复合属性,所以摄像机发生变化时也应提交。 逐场景,逐相机,逐精灵和相机,这三种周期的uni...
来源: Laya2.0_文档 发布时间: 20210714
.../GlowFilter.ts:101 Returns Float32Array Static _filter _filter(this: RenderSprite, sprite: Sprite, context: Context, x: number, y: number): void Inherited from BlurFilter._filter Defined in laya/filters/Filter.ts:38 Parameters this: RenderSprite sprite: Sprite context: Context x: number y: number Re...
来源: Laya3.0_api 发布时间: 20231115
...= 0) { text.text = Stat.FPS.toString(); } } } class Character extends Laya.Sprite { constructor(images) { super(); this.speed = 5; this.bloodBar; this.animation; this.nameLabel; this.createAnimation(images); this.createBloodBar(); this.createNameLabel(); } createAnimation(images) { const Animation =...
来源: Laya2.0_示例 发布时间: 20260303
....PERIOD_SCENE** :shader变量提交周期,逐场景。 **Shader3D.PERIOD_SPRITE ** :shader变量提交周期,逐精灵和相机,注:因为精灵包含MVP矩阵,为复合属性,所以摄像机发生变化时也应提交。 逐场景,逐相机,逐精灵和相机,这三种周期的uni...
来源: Laya2.0_文档 发布时间: 20210715