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

大约有 1,451 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0173 秒)

1171. 骨骼动画-换装 [ 43%]

...CurrSkinIndex:number = 0; private mSkinList:any = ["goblin","goblingirl"]; constructor() { WebGL.enable(); Laya.init(Browser.width, Browser.height); Laya.stage.bgColor = "#ffffff"; Stat.show(); this.startFun(); } public startFun():void { this.mAniPath = "../../res/spine/spineRes2/goblins.sk"; this.m...

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

1172. unity导出的场景.ls加载到laya3d中报错 [ 43%]

... 提交 6 个回复 fx_guo 赞同来自: 程序代码: class LayaAir3D { constructor() { //初始化引擎 Laya3D.init(0, 0,true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); //添加3D场景 var scene = Laya.Scene.load("LayaScene...

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

1173. 动效模板(TypeScript-LayaAir基础篇(TS)-动画基础) [ 43%]

...在index.html中引用。编写以下代码: ```typescript class Main { constructor() { //初始化舞台 Laya.init(1334,750); //设置舞台背景色 Laya.stage.bgColor = "#ffffff"; //加载图集资源,加载成功后将UI界面添加到舞台上 Laya.loader.load("./res/atlas/ui.atlas",Laya.Ha...

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

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

1175. 动画实例在调用含有名字参数的时候获取不到边界 [ 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

1176. 请问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

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

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

1178. Sprite-绘制各种形状 [ 42%]

...t WebGL = Laya.WebGL; export class Sprite_DrawShapes { private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(740, 400, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = "showall"; Laya.stage.bgColor = "#23...

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

1179. 描边Shader,使用了两个Pass [ 42%]

...码如下 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

1180. VR场景-VR地球 [ 42%]

...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_示例 发布时间: 20251219