namespace HC3;
public static class GameObjectExtensions
{
public static string GetPrefabResourcePath( this GameObject gameObject )
{
if ( gameObject is not PrefabScene prefabScene )
return string.Empty;
return prefabScene.Source is null ? string.Empty : prefabScene.Source.ResourcePath;
}
}