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

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

321. 使用3D UI · LayaAir3.4 · 引擎文档 · LAYABOX [ 53%]

...arget: Laya.Sprite3D; @property({type:Laya.UI3D}) private ui3d: Laya.UI3D; public animator: Laya.Animator; onEnable() { // 广告牌模式 this.ui3d.billboard = true; //获得状态机 this.animator = this.target.getComponent<Laya.Animator>(Laya.Animator); } } 最后来看看运行效果: ...

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

322. laya.net.LoaderManager_API3.0 [ 53%]

...Preparing search index... The search index is not available ts Options All Public Public/Protected All Inherited Externals Only exported Menu Globals "laya/net/LoaderManager" LoaderManager Class LoaderManager LoaderManager 类用于用于批量加载资源。此类是单例,不要手动实例化...

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

323. 场景管理 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...ort class NewScript extends Laya.Script { @property({ type: Laya.Button }) public uiBtn: Laya.Button; constructor() { super(); } /** * 组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 */ onAwake(): void { this.uiBtn.on(Laya.Event.CLICK, this, () =&g...

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

324. 垂直布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...xport class NewScript extends Laya.Script { @property({ type: Laya.VBox }) public vbox: Laya.VBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.vbox.pos(100, 100); this.vbox.bgColor = "#ffffff"; this.vbox.space = 30; thi...

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

325. 动画不显示 [ 52%]

...ui.DebugPanelUI;     import laya.device.motion.AccelerationInfo;     public class LayaSample {                  private var m_bkSound:Sound;         private var m_mapLayer:Sprite;         private var m_MapImgUrl:String;         private var m_Role:Animation;    ...

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

326. 水平布局容器组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 52%]

...xport class NewScript extends Laya.Script { @property({ type: Laya.HBox }) public hbox: Laya.HBox; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { this.hbox.pos(100, 100); this.hbox.bgColor = "#ffffff"; this.hbox.space = 100; th...

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

327. 分享:关于自定义场景继承的实现 [ 52%]

...egClass; export module ui { export class CustomSceneUI extends BaseScene { public txt_hello:Laya.Label; constructor(){ super()} createChildren():void { super.createChildren(); this.loadScene("CustomScene"); } } REG("ui.CustomSceneUI",CustomSceneUI); }   创建runtime类 如果想方便的引用导...

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

328. 父物体旋转会导致子物体的世界坐标系不正确?(附demo) [ 51%]

...g System.Collections; using System.Collections.Generic; using UnityEngine; public class TestMove : MonoBehaviour { [SerializeField] private Transform pivot; [SerializeField] private Transform guard; // Use this for initialization void Start () { pivot.transform.rotation = Quaternion.Euler(0, 0, -20)...

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

329. laya.ui.Tab [ 51%]

...| Frames No Frames TabProperties | Methods | Events Packagelaya.uiClasspublic class TabInheritanceTab UIGroup Box Component Sprite Node EventDispatcher Object Tab 组件用来定义选项卡按钮组。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Property...

来源: laya_api 发布时间: 20170929

330. laya.ui.RadioGroup [ 51%]

...es No Frames RadioGroupProperties | Methods | Events Packagelaya.uiClasspublic class RadioGroupInheritanceRadioGroup UIGroup Box Component Sprite Node EventDispatcher Object RadioGroup 控件定义一组 Radio 控件,这些控件相互排斥; 因此,用户每次只能选择一个 Radio 控...

来源: laya_api 发布时间: 20170929