docs(BubbleLayout): 扩展示例改走 XericRegistrationPaths,不再教旧根 Xeric UI Vessel/
README 里两段自定义气泡插件的示例还写着迁移前的 AddComponentMenu 字面量根;照现在 的规矩,路径出处只在表里一处,示例也该指到族常量。
This commit is contained in:
@@ -74,8 +74,9 @@ SyncItemList → 动画插件(按Order) → 物理积分 → 约束插件(按Ord
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using XericUI.BubbleLayout;
|
using XericUI.BubbleLayout;
|
||||||
|
using XericUI.Core;
|
||||||
|
|
||||||
[AddComponentMenu("Xeric UI Vessel/Layout/My Animation Plugin", 60)]
|
[AddComponentMenu(XericRegistrationPaths.Layout + "/My Animation Plugin", 60)]
|
||||||
public class MyAnimationPlugin : MonoBehaviour, IBubbleAnimationPlugin
|
public class MyAnimationPlugin : MonoBehaviour, IBubbleAnimationPlugin
|
||||||
{
|
{
|
||||||
// ── 必须实现:Enabled 和 Order ──
|
// ── 必须实现:Enabled 和 Order ──
|
||||||
@@ -120,8 +121,9 @@ public class MyAnimationPlugin : MonoBehaviour, IBubbleAnimationPlugin
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using XericUI.BubbleLayout;
|
using XericUI.BubbleLayout;
|
||||||
|
using XericUI.Core;
|
||||||
|
|
||||||
[AddComponentMenu("Xeric UI Vessel/Layout/My Constraint Plugin", 61)]
|
[AddComponentMenu(XericRegistrationPaths.Layout + "/My Constraint Plugin", 61)]
|
||||||
public class MyConstraintPlugin : MonoBehaviour, IBubbleConstraintPlugin
|
public class MyConstraintPlugin : MonoBehaviour, IBubbleConstraintPlugin
|
||||||
{
|
{
|
||||||
[SerializeField] private bool m_Enabled = true;
|
[SerializeField] private bool m_Enabled = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user