大约有 125 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0036 秒)
...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_示例 发布时间: 20251130
...的参照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
...关的链接 提交 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
...ue = "a1326";//显示"a1326"文字 */ public class FontClip extends Clip { /**数值*/ protected var _valueArr:String; /**文字内容数组**/ protected var _indexMap:Object; /**位图字体内容**/ ...
来源: Laya_社区 发布时间: 20180414
...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
...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
...对象 const { regClass, property } = Laya; @regClass() export class Main extends Laya.Script { onStart() { let item1 = Laya.Pool.createByClass(TestClass); console.log('item1:', item1.type); Laya.Pool.recoverByClass(item1); let item2 = Laya.Pool.createByClass(TestClass2); console.log('item2:', item2...
来源: Laya_社区 发布时间: 20250819
...+ 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_示例 发布时间: 20251130
...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
...。 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>...
来源: Laya3.0_文档 发布时间: 20251010