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

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

391. 2.0版本可用的CameraMoveScript.ts [ 44%]

... protected scene: Laya.Scene3D;      constructor() {         super();      }      /**      * @private      */     protected _updateRotation(): void {         if (Math.abs(this.yawPitchRoll.y) < 1.50) {             Laya.Quaternion.createFromY...

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

392. 单选框组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 43%]

...a; @regClass() export class UI_Radio extends Laya.Script { constructor() { super(); } // 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { let radio: Laya.Radio = new Laya.Radio(); radio.pos(200, 200); radio.size(160, 64); radio.sta...

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

393. 2.3.0beta 各种bug [ 43%]

...canCollideWith = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER) {      super(collisionGroup, canCollideWith);        // this._enableProcessCollisions = false;      }   拖尾重置   拖尾提供重置方法       TrailFilter       resetGeometry(){ var render = this._owner._rend...

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

394. webgl 下当对象子显示对象存在panel且panel有子集时,旋转此显示对象会导致此显示对象的同级对象消失!(1.7.10beta) [ 43%]

...random() * 180; } } class ChildView extends ui.ChildViewUI{ constructor(){ super(); var panel = new Laya.Panel(); panel.pos(0,0); panel.size(200,50); this.addChild(panel); var panelChild = new Laya.Sprite(); panelChild.pos(0,0); panelChild.size(200,50); panel.addChild(panelChild); } } new GameMain()...

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

395. list item 添加事件后无法监听 [ 43%]

...mage = Laya.Image;   var WID = 373, HEI = 85;   function Item() { Item.__super.call(this); this.size(WID, HEI); this.img = new Image(); this.addChild(this.img);   this.setImg = function(src) { this.img.skin = src; } } Laya.class(Item, "Item", Box);   // 主要逻辑代码 var Stage   = Laya.St...

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

396. 性能测试-卡通人物2 [ 43%]

... Laya.Animation; // Class Character function Character(images) { Character.super(this); Character.WIDTH = 110; Character.HEIGHT = 110; var bloodBar; var animation; var nameLabel; Character.prototype.createAnimation = function(images) { animation = new Animation(); animation.loadImages(images); anima...

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

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

...rUnit: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.enemyUnit.push(new La...

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

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

... 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): void { this._setTex...

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

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

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

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

400. 性能测试-卡通人物2 [ 43%]

...tring(); } } } 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) { const Animation = Laya.Animation; this.animation...

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