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

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

11. 性能测试-卡通人物2 [ 81%]

...Frame % 60 === 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) { cons...

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

12. 关于要自定shader的同学 [ 81%]

...的参照shader原文档 2.要修改shader里面的值 class ShaderValue extends Laya.Value2D {class ShaderValue extends Laya.Value2D { constructor () { super(0, 0) var _vlen = 8 * Laya.CONST3D2D.BYTES_PE this.position = [2, Laya.WebGLContext.FLOAT, false, _vlen, 0] this.texcoord = [2, Laya.WebGLCon...

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

13. 分包项目, 加载js时报错 [ 80%]

...关的链接 提交 2 个回复 sevennqi 赞同来自: 这个是我改成extends Box:  package {     import laya.ui.Box;     import laya.display.Text;     import laya.ui.View;     /*[COMPILER OPTIONS:ForcedCompile]*/     public class loading100 extends Box     {         publ...

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

14. FontChip不能显示 [ 80%]

...ue = "a1326";//显示"a1326"文字      */     public class FontClip extends Clip {         /**数值*/         protected var _valueArr:String;         /**文字内容数组**/         protected var _indexMap:Object;         /**位图字体内容**/         ...

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

15. PBR标准材质实时阴影渲染问题 [ 79%]

...om "./ModelViewer"; import Scene = Laya.Scene; export default class Game3D extends Scene { constructor() { super(); //初始化引擎 Laya3D.init(0, 0); var scene_360 = Laya.loader.getRes("LayaScene_PUCHENG3D/Conventional/PUCHENG3D.ls") as Laya.Scene3D; Laya.stage.addChildAt(scene_360, 0); var camer...

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

16. CameraMoveScript.as在哪儿下载群里的有错 [ 79%]

...ents.KeyBoardManager; /** * ... * @author */ public class CameraMoveScript extends Script { protected var lastMouseX:Number; protected var lastMouseY:Number; protected var yawPitchRoll:Vector3 = new Vector3(); protected var resultRotation:Quaternion = new Quaternion(); protected var tempRotationZ:Qu...

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

17. UI-List [ 78%]

...+ index); } } import Box = Laya.Box; import Image = Laya.Image; class Item extends Box { public static WID: number = 373; public static HEI: number = 85; private img: Image; constructor(){ super(); this.size(Item.WID, Item.HEI); this.img = new Image(); this.addChild(this.img); } public setImg(src: s...

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

18. Laya 绑定显示内容到骨骼动画 [ 78%]

...1. 可绑定内容的骨骼动画   export default class BindSkeleton extends Laya.Skeleton { private __bindList:BindSource[]; constructor(){ super(); this.__bindList=[]; }  /** * 绑定 * @param source */ bind(source:BindSource):void{ let index:number=this.__bindList.indexOf(source); if(...

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

19. 列表组件 · LayaAir3.0文档 · LAYABOX [ 78%]

...。 const { regClass, property } = Laya; @regClass() export class Script extends Laya.Script { @property({ type: Laya.List }) list: Laya.List constructor() { super(); } // 组件被启用后执行,例如节点被添加到舞台后 onEnable(): void { // 给List对象赋值 var data: Array<any&gt...

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

20. 字体切片组件 · LayaAir3.0文档 · LAYABOX [ 77%]

... const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property( { type : Laya.FontClip } ) public fontclp: Laya.FontClip; constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwak...

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