Bootstrap

unity PrefabUtility 接口使用记录

        bool isAny = PrefabUtility.IsAnyPrefabInstanceRoot(node);
        bool isAdded = PrefabUtility.IsAddedGameObjectOverride(node);
        GameObject or = PrefabUtility.GetOutermostPrefabInstanceRoot(node);
        GameObject nr = PrefabUtility.GetNearestPrefabInstanceRoot(node);

返回值记录:

isAnyisAddedornr
prefab_oriVariantTrueFalseprefab_oriVariantprefab_oriVariant
  ori_cubeFalseFalseprefab_oriVariantprefab_oriVariant
  var_CubeFalseTruenullnull
  prefab_ori2TrueTrueprefab_ori2prefab_ori2
    ori2_CapsuleFalseFalseprefab_ori2prefab_ori2
    var_SphereFalseTruenullnull

;