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

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

201. 两个移动的简单物体 onTriggerEnter 无法触发 (有悬赏) [ 55%]

... default class BulletControlTrigger extends Laya.Script3D { constructor(){ super(); }  /** * 开始触发时执行 * 此方法为虚方法,使用时重写覆盖即可 */ onTriggerEnter(other){ console.log("onTriggerEnter"); };  onTriggerStay(other){ console.log("onTriggerStay"); };  onCollision...

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

202. 分享个用美术资源做位图文本的方法。。。 [ 55%]

...ata: any,textureData: Laya.Texture,width: number,posType:string = "left"){ super(); this.width = width; this._posType = posType; this._jsonData = jsonData; this._imageData = textureData; } public set padding(v: number){ this._padding = v; this.setCharsPos(); } public get padding(): number{ return th...

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

203. 【LIST无法拖动】参照官方实例做的 [ 55%]

...xt;      private img: Image;     constructor(){         super();         this.size(Item.WID, Item.HEI);         this.img = new Image();         this.img.width = 200;         this.img.height = 200;         this.height = 230;    ...

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

204. 分享一个Shader版的CoolDown实现 [ 55%]

...        }\             ";             */             super(vs, ps, "coolDownShader");         }     } import WebGLContext = laya.webgl.WebGLContext;     import Value2D = laya.webgl.shader.d2.value.Value2D;     import CONST3D2D = laya.webgl.utils.CONST3D2D;     expor...

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

205. 请问js怎么触发按钮的onclick事件,按教程的写,触发不知道为什么。 [ 55%]

...xtends Laya.Script { constructor(){ alert("1"); //执行后这里触发了 super();} onEnable(){ alert("2"); //执行后这里触发了 } onclick(){ alert("3"); //执行后点击按钮这里没触发,不知道为什么 //Laya.Scene.open("_game.scene"); } } 2018-10-28 添加评论 免费帖 --> 分...

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

206. 加载.lh文件 运行后黑屏 无法显示 [ 54%]

...:boolean;     private twoFirst:boolean; constructor(){         super(); this._scene = null;      this._text = null;         this._camera = null;         this.rotation = new Laya.Vector3(0, 0.01, 0);      this.lastPosition = new Laya.Vector2(0, 0);      this.di...

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

207. (实现手指控制模型的缩放旋转)触控可以识别 但是导入的模型没有根据触控反应 [ 54%]

...:boolean;     private twoFirst:boolean; constructor(){         super(); this._scene = null;      this._text = null;         this._camera = null;         this.rotation = new Laya.Vector3(0, 0.01, 0);      this.lastPosition = new Laya.Vector2(0, 0);      this.di...

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

208. 场景管理 · LayaAir3.0文档 · LAYABOX [ 54%]

...property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () => { //点击后,打开Msg场景 Laya.Sce...

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

209. 深入理解LayaAir引擎架构和实现原理(三)引擎渲染主循环与AOP介入控制 [ 54%]

...逻辑。引擎内所有的计时器timer都是在这里更新的。其中super.render(context, x, y); 属于stage的父类Sprite类的方法,渲染具体实现的地方。与其他引擎不同的是,Laya的帧率只有两种,高帧率模式固定60帧,低帧率模式 为双帧处理渲染...

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

210. 天理何在,一个轴心点位中心的addChild到一个父容器,父容器的轴线点也是中心 [ 54%]

...个父容器,父容器的轴线点也是中心 constructor(skin:Box) { super(); this.mc = skin; this._name = this.mc.name; this.addChild(this.mc); var xx:number = this.mc.x; var yy:number = this.mc.y; this.x = xx; this.y = yy; //一个轴心点中心的addChild到另一个轴线点位中心的 thi...

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