大约有 325 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0057 秒)
Laya_社区(111) Laya3.0_api(97) Laya3.0_文档(49) Laya_示例(40) Laya2.0_文档(16) Laya2.0_api(9) laya_api(3)
...operty } = Laya; @regClass() export class UI_VSlider extends Laya.Script { constructor() { super(); } onAwake(): void { let skins: any[] = []; skins.push("vslider.png", "vslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeVSli...
来源: Laya3.0_文档 发布时间: 20251010
...operty } = Laya; @regClass() export class UI_HSlider extends Laya.Script { constructor() { super(); } onAwake(): void { let skins: any[] = []; skins.push("hslider.png", "hslider$bar.png");//图片资源来自“引擎API使用示例” Laya.loader.load(skins, Laya.Handler.create(this, this.placeHSli...
来源: Laya3.0_文档 发布时间: 20251010
...er : Laya.Sprite3D; @property( { type: Laya.Box } ) private box: Laya.Box; constructor() { super(); } onStart(): void { //加载预制体文件 Laya.loader.load("resources/Title.lh").then( (res)=>{ //创建预制体 let label: Laya.Label = res.create(); //添加预制体Label字体到box节点下...
来源: Laya3.0_文档 发布时间: 20251105
...dler export class MaskDemo { private Res: string; private img: Laya.Image; constructor() { //Laya.init(400, 640, Laya.WebGL); //设置舞台背景色 Laya.stage.bgColor = "#ffffff" Laya.Stat.show() //资源路径 this.Res = "test.png"; this.img = new Laya.Image(); this.img.pos(200, 200) //获取图...
来源: Laya_社区 发布时间: 20171211
...LIGHTINGMAPUV:int精灵级着色器宏定义,光照贴图便宜和缩放。Constructor DetailRenderableSprite3D()Constructorpublic function RenderableSprite3D(name:String) 创建一个 RenderableSprite3D 实例。 Parameters name:StringMethod Detail_changeHierarchyAnimator()methodoverride protected ...
来源: Laya2.0_api 发布时间: 20190513
...版本。 vincent • 2019-08-28 18:27 class TestSceneUI extends Scene { constructor() { super(); } createChildren() { super.createChildren(); this.loadScene("test/TestScene"); } } UC指这行报错,这个都是编译后的代码 addScore(value = 1) { this._score += value; this.scoreLbl....
来源: Laya_社区 发布时间: 20190828
... private newScene: Laya.Scene3D; private arr: any; constructor() { super(); this.arr = []; this.newScene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; //初始化照相机 va...
来源: Laya_社区 发布时间: 20201120
...roperty 'pivotX' of null 打开弹窗UI时报错 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' TypeError: Cannot read property 'length' of null TypeError: Cannot read property 'getSubShaderAt' of undefined Uncaught TypeError: Cannot read property 'indexCount' Uncaug...
来源: Laya_社区 发布时间: 20180307
...用是否正确: class ShuiPao extends Sprite3D { constructor() { super(); let mesh = Sprite3D.load('resources/shuipao.lh'); this.addChild(mesh); mesh.on(Event.HIERARCHY_LOADED, this, ...
来源: Laya_社区 发布时间: 20170608
...? 我就弄了一个测试代码,压根就没有功能。 class Main { constructor() { console.log(Laya.Browser.width, Laya.Browser.height); this.current = { x: 0, y: Laya.Browser.height }; // Laya.stage.bgColor = "#3F51B5"; this.sp = new Laya.Sprite(); Laya.stage.addChild(this.sp); } render() { c...
来源: Laya_社区 发布时间: 20180602