大约有 420 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0046 秒)
Laya_社区(247) Laya3.0_文档(36) Laya_示例(33) Laya2.0_文档(30) Laya3.0_api(25) Laya2.0_api(20) Laya2.0_示例(15) laya_api(14)
...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
...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
...答(最新版本: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_示例 发布时间: 20251130
...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_示例 发布时间: 20251130
....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_示例 发布时间: 20251130
....PERIOD_SCENE** :shader变量提交周期,逐场景。 **Shader3D.PERIOD_SPRITE ** :shader变量提交周期,逐精灵和相机,注:因为精灵包含MVP矩阵,为复合属性,所以摄像机发生变化时也应提交。 逐场景,逐相机,逐精灵和相机,这三种周期的uni...
来源: Laya2.0_文档 发布时间: 20210715
...Element(); this.chat_lab.pos(2, 2); this.chat_lab.size(495,329); this.rect_sprite.addChild(this.chat_lab); .... //输入了一大堆聊天记录后,内容超过了329px,虽然限高height:329px;并加入了overflow-y:scroll;,但没有出现滚动条而且还漏了。 var str = "<div style='...
来源: Laya_社区 发布时间: 20210121