diff --git a/Unity/Assets/HotfixView/Unity.HotfixView.asmdef b/Unity/Assets/HotfixView/Unity.HotfixView.asmdef index 796fa5b..26099a5 100644 --- a/Unity/Assets/HotfixView/Unity.HotfixView.asmdef +++ b/Unity/Assets/HotfixView/Unity.HotfixView.asmdef @@ -8,7 +8,8 @@ "Unity.Hotfix", "Unity.ModelView", "Animancer", - "YooAsset" + "YooAsset", + "Unity.RenderPipelines.Universal.Runtime" ], "includePlatforms": [ "Editor" diff --git a/Unity/Assets/ModelView/Unity.ModelView.asmdef b/Unity/Assets/ModelView/Unity.ModelView.asmdef index 4ada5f7..943e0e0 100644 --- a/Unity/Assets/ModelView/Unity.ModelView.asmdef +++ b/Unity/Assets/ModelView/Unity.ModelView.asmdef @@ -6,7 +6,8 @@ "Unity.Mono", "Unity.ThirdParty", "Animancer", - "YooAsset" + "YooAsset", + "Unity.RenderPipelines.Universal.Runtime" ], "includePlatforms": [ "Editor" diff --git a/Unity/Codes/HotfixView/Demo/Scene/PeachValleyComponent.cs b/Unity/Codes/HotfixView/Demo/Scene/PeachValleyComponent.cs index 4140073..d6985a1 100644 --- a/Unity/Codes/HotfixView/Demo/Scene/PeachValleyComponent.cs +++ b/Unity/Codes/HotfixView/Demo/Scene/PeachValleyComponent.cs @@ -12,6 +12,7 @@ namespace ET } } + [FriendClass(typeof(PeachValleyComponent))] public static class PeachValleyComponentSystem { private const float MinutePerHouse = 60.0f; diff --git a/Unity/Codes/ModelView/Demo/Scene/PeachValleyComponent.cs b/Unity/Codes/ModelView/Demo/Scene/PeachValleyComponent.cs index 6f161c1..b43fa17 100644 --- a/Unity/Codes/ModelView/Demo/Scene/PeachValleyComponent.cs +++ b/Unity/Codes/ModelView/Demo/Scene/PeachValleyComponent.cs @@ -3,6 +3,7 @@ using UnityEngine.Rendering.Universal; namespace ET { + [ComponentOf(typeof(Scene))] public class PeachValleyComponent: Entity, IAwake { public Light2D GlobalLight;