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

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

351. 2.3.0beta 各种bug [ 47%]

...禁用的,需要重新开启 修改 laya.d3.js   class PhysicsCollider extends PhysicsTriggerComponent {      constructor(collisionGroup = Physics3DUtils.COLLISIONFILTERGROUP_DEFAULTFILTER, canCollideWith = Physics3DUtils.COLLISIONFILTERGROUP_ALLFILTER) {      super(collisionGroup, canCol...

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

352. 射线检测报错,outHitInfo.sprite3D=null; [ 47%]

...射线检测报错,outHitInfo.sprite3D=null; 代码: class SceneScript extends Laya.Script{  private ray : Laya.Ray; private hit: Laya.RaycastHit; private phasorSprite3D:Laya.PhasorSpriter3D; private camera : Laya.Camera; private scene: Laya.Scene;  public _load(owner : any):void{ this.scene =...

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

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

...d消失 parent.child_1.rotation = Math.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.a...

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

354. 动画状态机详解 · LayaAir3.0文档 · LAYABOX [ 47%]

...下: ... import Vector3 = Laya.Vector3; ... export class AnimationScript extends Laya.AnimatorStateScript { ... private model: Laya.Sprite3D; /**@internal */ setPlayScriptInfo(animator: Laya.Animator | Laya.Animator2D, layerindex: number, playstate: Laya.AnimatorState | Laya.AnimatorState2D) { ......

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

355. 性能测试-卡通人物2 [ 47%]

... % 60 === 0) { this.text.text = Stat.FPS.toString(); } } } class Character extends Sprite { public static WIDTH: number = 110; public static HEIGHT: number = 110; private speed: number = 5; private bloodBar: Sprite; private animation: Animation; private nameLabel: Text; constructor(images: Array) { ...

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

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

...: 2 人 198*****136 • 2020-09-11 16:34 export default class Scene_Battle extends Laya.Script{ playerUnitReady:number; enemyUnitReady:number; private playerUnit:Laya.Animation[]; private enemyUnit:Laya.Animation[]; constructor(){ super(); Laya.stage.alignH= Laya.Stage.ALIGN_CENTER; Laya.stage.align...

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

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

...fo"; import { ui } from "../ui/layaMaxUI"; export default class RuleDialog extends ui.scene.RuleDialogUI { 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.updateIte...

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

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

...=texture2D(u_texture, v_Texcoord);}\n";自定义材质class CustomMaterial extends Laya.BaseMaterial { static DIFFUSETEXTURE_ID: number = 1; constructor() { super(); this.setShaderName("CustomShader"); } public getDiffuseTexture(): Laya.BaseTexture { return this._getTexture(CustomMaterial.DIFFUSETEX...

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

359. 描边Shader,使用了两个Pass [ 46%]

...截图如下:   核心代码如下 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 uni...

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

360. 求HTTP相关的文档或者例子谢谢了 [ 46%]

...RequestMethod; import flash.net.URLVariables; public class HTTP_URLRequest extends Sprite { public function HTTP_URLRequest() { if(stage) { init(); } else { this.addEventListener(Event.ADDED_TO_STAGE,init); } } private function init(e:Event=null):void { //第一步:加载数据:创建URLLoader...

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