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

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

841. 动画实例在调用含有名字参数的时候获取不到边界 [ 43%]

...; private playerUnit:Laya.Animation[]; private enemyUnit:Laya.Animation[]; constructor(){ super(); Laya.stage.alignH= Laya.Stage.ALIGN_CENTER; Laya.stage.alignV = Laya.Stage.ALIGN_MIDDLE; } onEnable(){ this.playerUnit = []; this.enemyUnit = []; this.playerUnit.push(new Laya.Animation()); this.enemyU...

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

842. VR场景-VR地球 [ 43%]

...otate(rotation, true); });class VRScene1 { private rotation: Laya.Vector3; constructor() { Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene: Laya.Scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Sc...

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

843. 角色模型的材质列表切换后,不播放动作了 [ 43%]

...Material extends Laya.BaseMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEXTURE_ID); } public setDiffuseTexture(value: Laya.BaseTexture): voi...

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

844. 请问laya有没有类似翻页容器(pageView)的组件? [ 43%]

...DialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rul...

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

845. 描边Shader,使用了两个Pass [ 43%]

...码如下 export default class OutlineMaterial extends Laya.BaseMaterial { constructor() { super() var attributeMap = { 'a_Position': Laya.VertexMesh.MESH_POSITION0, 'a_Normal': Laya.VertexMesh.MESH_NORMAL0, 'a_Texcoord': Laya.VertexMesh.MESH_TEXTURECOORDINATE0, } var uniformMap = { 'u_MvpMatrix': [...

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

846. 垂直滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...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_文档 发布时间: 20240910

847. 绘制曲线(TypeScript-LayaAir基础篇(TS)-矢量图) [ 43%]

...e_DrawShapes {         private sp: Sprite;            constructor()         {             Laya.init(500, 300, WebGL);             this.drawSomething();         }            private drawSomething(): void {          ...

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

848. 水平滑动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...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_文档 发布时间: 20240910

849. laya.utils.Timer [ 43%]

...n get delta():intscaleproperty public var scale:Number = 1 时针缩放。Constructor DetailTimer()Constructorpublic function Timer(autoActive:Boolean = true) 创建 Timer 类的一个实例。 Parameters autoActive:Boolean (default = true)Method DetailcallLater()method public function callLater(ca...

来源: Laya2.0_api 发布时间: 20190513

850. TypeError: Failed to execute 'texImage2D' on 'WebGLRenderingContext' [ 43%]

...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