Пример #1
0
 private uint GetObjectHideFlags(TransferInstructionFlags flags, TransferInstructionFlags exportFlags)
 {
     if (IsReadHideFlag(flags))
     {
         return(ObjectHideFlags);
     }
     if (ClassID == ClassIDType.GameObject)
     {
         GameObject go    = (GameObject)this;
         int        depth = go.GetRootDepth();
         return(depth > 1 ? 1u : 0u);
     }
     return(exportFlags.IsForPrefab() ? 1u : 0u);
 }
Пример #2
0
 private HideFlags GetObjectHideFlags(Version version, TransferInstructionFlags flags, TransferInstructionFlags exportFlags)
 {
     if (IsReadHideFlag(version, flags))
     {
         return(ObjectHideFlags);
     }
     if (ClassID == ClassIDType.GameObject)
     {
         GameObject go    = (GameObject)this;
         int        depth = go.GetRootDepth();
         return(depth > 1 ? HideFlags.HideInHierarchy : HideFlags.None);
     }
     return(exportFlags.IsForPrefab() ? HideFlags.HideInHierarchy : ObjectHideFlags);
 }
Пример #3
0
 /// <summary>
 /// Less than 3.5 or Not Prefab
 /// </summary>
 public static bool HasComponents(Version version, TransferInstructionFlags flags) => !flags.IsForPrefab() || version.IsLess(3, 5);
Пример #4
0
 /// <summary>
 /// 2018.3 and Not Release and Not Prefab
 /// </summary>
 public static bool HasPrefabAsset(Version version, TransferInstructionFlags flags)
 {
     return(!flags.IsRelease() && !flags.IsForPrefab() && version.IsGreaterEqual(2018, 3));
 }
Пример #5
0
 /// <summary>
 /// Not Release and Not Prefab
 /// </summary>
 public static bool HasCorrespondingSourceObject(TransferInstructionFlags flags) => !flags.IsRelease() && !flags.IsForPrefab();
Пример #6
0
 /// <summary>
 /// Not Prefab
 /// </summary>
 public static bool HasGameObject(TransferInstructionFlags flags) => !flags.IsForPrefab();
Пример #7
0
 /// <summary>
 /// Less than 3.5 or Not Prefab
 /// </summary>
 public static bool IsReadComponents(Version version, TransferInstructionFlags flags)
 {
     return(!flags.IsForPrefab() || version.IsLess(3, 5));
 }
Пример #8
0
 /// <summary>
 /// Not Release and Not Prefab
 /// </summary>
 public static bool IsReadPrefabParentObject(TransferInstructionFlags flags)
 {
     return(!flags.IsRelease() && !flags.IsForPrefab());
 }
Пример #9
0
 /// <summary>
 /// 2.0.0 and greater and Not Release and Not Prefab
 /// </summary>
 public static bool IsReadHideFlag(Version version, TransferInstructionFlags flags)
 {
     return(!flags.IsRelease() && !flags.IsForPrefab() && version.IsGreaterEqual(2));
 }
Пример #10
0
 /// <summary>
 /// Not Prefab
 /// </summary>
 public static bool IsReadGameObject(TransferInstructionFlags flags)
 {
     return(!flags.IsForPrefab());
 }
Пример #11
0
 /// <summary>
 /// Engine Package
 /// </summary>
 public static bool IsReadPrefab(TransferInstructionFlags flags)
 {
     return(!flags.IsUnknown1() && !flags.IsForPrefab());
 }
Пример #12
0
 public static bool IsReadHideFlag(TransferInstructionFlags flags)
 {
     return(!flags.IsRelease() && !flags.IsForPrefab());
 }
Пример #13
0
 /// <summary>
 /// 2.0.0 and greater and Not Release and Not Prefab
 /// </summary>
 public static bool HasHideFlag(Version version, TransferInstructionFlags flags) => !flags.IsRelease() && !flags.IsForPrefab() && version.IsGreaterEqual(2);
Пример #14
0
 /// <summary>
 /// Not Release and Not Prefab
 /// </summary>
 private static bool HasEditorPtrs(TransferInstructionFlags flags) => !flags.IsRelease() && !flags.IsForPrefab();