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

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

101. 3D场景跳转到2D场景问题 [ 64%]

..../GameScene'; export default class VictoryScene extends VictorySceneUI {  constructor() { super();   } onAwake(){ let btnOnce=this.getChildByName("btnOnce"); btnOnce.on(Laya.Event.CLICK,this,this.onClick); } onClick(e){ this.removeSelf(); let gameScene=new GameScene(); Laya.stage.addChild(gameScen...

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

102. 我在dialog a上继续弹出dialog b 。需要关闭b的时候,a依然存在。怎么做? [ 64%]

...打开另外一个list item啊。 打开 dialog b 。b的构造方法: constructor() { super(); console.log(" Here is DlgNote2"); this.closeEffect = null; this.closeBtn.on(Laya.Event.CLICK, this, this.toClose); //this.show(); } b的关闭方法: toClose():void{ //Laya.Scene.open("...

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

103. spine动画放大后,遮罩显示不正常 [ 64%]

...的TestScene.scene文件 export default class GameUI extends Laya.Scene { constructor() { super(); //设置单例的引用方式,方便其他类引用 GameUI.instance = this; //关闭多点触控,否则就无敌了 Laya.MouseManager.multiTouchEnabled = false; //加载场景文件 this.loadScene(...

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

104. 提示错误在laya.core.js里 [ 64%]

...laya2.6. export default class SceneLoad extends Laya.Script{     constructor(){         super();     }     onAwake(){         Laya.Scene3D.load("res/LayaScene_demo/Android/demo.ls",Laya.Handler.create(this,function(scene){             Laya.stage.addChild(...

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

105. laya.d3.physics.constraints.ConstraintComponent_API3.0 [ 64%]

...Component ConstraintComponent ConfigurableConstraint FixedConstraint Index Constructors constructor Properties _extra _singleton disableCollisionsBetweenLinkedBodies owner runInEditor scriptPath Accessors anchor appliedImpulse awaked breakForce breakTorque connectAnchor currentForce currentTorque de...

来源: Laya3.0_api 发布时间: 20231115

106. 为什么我获取不到鼠标滚轮的delta值,我查看laya.events.Event 里面没有这个属性 [ 64%]

...; import Rectangle = laya.maths.Rectangle export class Interaction_Scale { constructor() { Laya3D.init(640, 1136, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; // Laya.Stat.show(); this.scene = Laya.stage.addChild(new Laya.Scene()) as Laya.Scene; this.camera = this.scene.addChild(new Laya.Cam...

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

107. 官方DynamicBatchTest照做为什么动态合不了批? [ 64%]

...amicBatchTest照做为什么动态合不了批? class DynamicBatchTest { constructor() { Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show();   var scene = Laya.stage.addChild(new Laya.Scene3D()); scene.ambientColor = n...

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

108. 材质-BlinnPhong-漫反射贴图 [ 64%]

...iffuseMap { private rotation: Laya.Vector3 = new Laya.Vector3(0, 0.01, 0); 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_示例 发布时间: 20260816

109. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 64%]

...k_effectUI extends EffectAnimation { //然后又改成Laya.EffectAnimation constructor(){ super(); this.ani1=null; this.effectData =ui.kick_effectUI.uiView;; } } kick_effectUI.uiView={"type":"View","props":{},"compId":2,"child":[{"type":"Sprite","props":{"y":0,"x":0,"texture":"ani/p1.png"},"compId":...

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

110. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 63%]

...ic-001.png","output-06.png"]; private texture:Laya.Texture2D; private box; constructor(){ Laya3D.init(0, 0); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; Laya.Stat.show(); var scene = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; var camera...

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