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

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

171. 3D场景中背景无法透明,版本2.7.1 [ 57%]

...2.7.1,无法背景透明,永远是黑色 export default class GameUI extends Laya.Scene { constructor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(...

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

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

...ox; import Image = Laya.Image; import Text = Laya.Text; class Item extends Box {     public static WID: number = 400;     public static HEI: number =40;     private text_guanqia: Text;     private text_guanqia_info: Text;      private img: Image;    ...

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

173. LayaBox HelloWorld实战 [ 57%]

...话框,对话框里面展示 Hello World!export default class HelloWorld extends Laya.Scene { constructor() { super(); HelloWorld.instance = this; } onBtnShowClick(){ var dialog = new Laya.Dialog(); dialog.width=300; dialog.height=600; //var bg = new Laya.Image('comp/img_bg.png'); //dialog.addChil...

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

174. Laya3.0 工程内的bundle.js文件存在某个类 导出微信工程后bundle.js又将该类裁剪了 [ 57%]

...况要怎么避免   @FGUIComponent("ui://login") export class TFrmLogin extends TGenFrmLogin {      onConstruct(): void {         super.onConstruct();     }  } 附件 : --> 2023-05-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相...

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

175. [LayaAir3]插件开发中,我需要选择文件夹,如何可视化选择文件夹 [ 57%]

...何处理。只能通过代码处理了。 export class SplitAtlasDialog extends IEditor.Dialog { async create() { let panel = IEditor.GUIUtils.createInspectorPanel(); let data = Editor.getSettings("SplitAtlasSetting").data; panel.inspect(data, "SplitAtlasSetting"); this.contentPane = panel; panel.o...

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

176. Laya3d球星添加了刚体,但是碰撞无法触发onTriggerEnter的问题,有偿悬赏解答 [ 56%]

...,就可以获取到觖发信息了 export default class PlayerController extends Laya.Script3D 2020-07-29 0 0 分享 微博 QZONE 微信 不懂就问 赞同来自: isKinematic=true,这个为true是没有碰撞检测的 2020-07-29 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...

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

177. 实体组件系统 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...逻辑及对象池回收机制 */ @regClass() export default class Bullet extends Laya.Script { constructor() { super(); } onEnable(): void { //设置初始速度 let rig: Laya.RigidBody = this.owner.getComponent(Laya.RigidBody); rig.setVelocity({ x: 0, y: -10 }); } onTriggerEnter(other: any, self: ...

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

178. 组件脚本的内置方法 · LayaAir3.3 · 引擎文档 · LAYABOX [ 56%]

...例如下: const { regClass } = Laya; @regClass() export class NewScript extends Laya.Script { //被添加到节点后调用,和Awake不同的是即使节点未激活onAdded也会调用 onAdded(): void { console.log("Game onAdded"); } //组件被激活后执行,此时所有节点和组件均...

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

179. 自己写了个label继承官方的label,出现了问题,求指导~ [ 56%]

.../** * 继承官方的label * @author Administrator * */ public class Label extends laya.ui.Label { private var _textFormat:TextFormat; private var _txt:String; private var _lWidth:int; private var _lHeight:int; private var _lx:int; private var _ly:int; public function Label(text:String="") { super(t...

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

180. laya加载unity插件导出的场景 physics3D is not a function [ 56%]

...脚本方式实现,比如子弹脚本。 */ export default class GameUI extends ui.test.TestSceneUI { constructor() { super();       //添加3D场景 Laya.Scene3D.load("res/Conventional/SimpleTown_DemoScene.ls",Laya.Handler.create(this,function(s:Laya.Scene3D):void{ var scene = s; Laya.stage.ad...

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