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

大约有 202 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0049 秒)

151. 引擎 TiledMap 居然不支持图块翻转 [ 55%]

...onst TiledMapFlipConstHalf = TiledMapFlipConst / 2;     class GridSprite extends Laya.Sprite {         constructor() {             super(...arguments);             this.relativeX = 0;             this.relativeY = 0;             this.isAloneObject = false;          ...

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

152. 动画状态机 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...下: ... import Vector3 = Laya.Vector3; ... export class AnimationScript extends Laya.AnimatorStateScript { ... private model: Laya.Sprite3D; /**@internal */ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: number, playstate: Laya.AnimatorState | Laya.AnimatorState2D) { ......

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

153. 3d显示对象克隆体超出舞台不再显示的bug2.1.0.btea1 [ 55%]

...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { scene3d:Laya.Scene3D; sp:Laya.Sprite3D; sp2:Laya.Sprite3D; translateA = new Laya.Vector3(-0.05, 0, 0); translateD = new Laya.Vector3( 0.05, 0, 0); constructor() { super(); //添加3D场景 var sce...

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

154. 3D粒子 · LayaAir3.3 · 引擎文档 · LAYABOX [ 55%]

...建,播放,暂停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurikenParticleSystem: ...

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

155. 3D粒子编辑模块 · LayaAir3文档 · LAYABOX [ 55%]

...建,播放,暂停,销毁,清理对象池 export class Particle3D extends Sprite3D { private _isInited: boolean = false; private _filePath: string = null; private _particle: Laya.Sprite = null; private _shuriKenParticle3D: Array<ShuriKenParticle3D>= []; private _shurikenParticleSystem: ...

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

156. UNITY导出的模型旋转不了 [ 55%]

...rotate(vect,false,false); //}); })); })); })(this); class BoxControlScript extends Laya.Script3D { constructor() { super(); this.obj = null; this.rotation = new Laya.Vector3(0, 1, 0); } /** * 覆写3D对象组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行...

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

157. 如何自定义Shader(TypeScript-3D基础(TS)-LayaAir3D之Shader) [ 55%]

...BaseMaterial变更为Material。 ```typescript export class CustomMaterial extends Laya.Material { constructor() { super(); //设置本材质使用的shader名字 this.setShaderName("CustomShader"); } } ``` #### 4.使用自定义材质 ​ 在使用自定义材质之前,一定要记得初始化自...

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

158. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 55%]

...18-05-08 0 0 分享 微博 QZONE 微信 Miller 赞同来自:   class Item extends Laya.Box {   public static WID: number = 600; public static HEI: number = 85; private img: Laya.Image;         //private text: Laya.Label; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = ne...

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

159. Laya List给子元素添加事件后,滚动事件被劫持了 [ 54%]

...toreTxList);     悬赏找大神看问题 export default class StoreItem extends Laya.Box { constructor() { super(); this.size(195, 210); }  } 附件 : --> ListDemo.zip 2019-07-11 添加评论 已悬赏10元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链...

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

160. Laya3D 中如何解决3D模型上添加文本的问题,类似Unity中的3DText [ 54%]

... 关注: 5 人 大大大懒猫 • 2018-09-10 10:39 export class ShopTitle extends Laya.Script{ public title: string; constructor(){ super(); } public _initialize(owner: Laya.Sprite3D): void { super._initialize(owner); var sprite3D = this.owner as Laya.MeshSprite3D; var sprite3DMat = new Laya.Standa...

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