Search Unity

Resolved Failed to untick Ghost Authoring Component options

Discussion in 'NetCode for ECS' started by optimise, Jun 29, 2021.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    Hi @CMarastoni. I try to untick Ghost Authoring Component options but I found that most of them can't be untick even it's not grey out. Is that known issue at Netcode 0.6.0-preview.7?

    upload_2021-6-29_23-26-37.png
     
  2. CMarastoni

    CMarastoni

    Unity Technologies

    Joined:
    Mar 18, 2020
    Posts:
    894
    Is a bug in 0.6-preview.7. Fixed already
     
    optimise likes this.
  3. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    @CMarastoni Can you send me unofficial fix for this bug? I need to use this feature.
     
  4. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    @CMarastoni Is that possible for u to backport unofficial fix to 0.6.0-preview.7?
     
    Last edited: Jul 10, 2021
  5. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
  6. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    Hi @CMarastoni Is that super hard for u to backport unofficial fix to 0.6.0-preview.7? If next version of Netcode with other dots packages are coming really soon then maybe not need to spend your time backporting anymore.
     
  7. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    @CMarastoni Can u send me official fix solution for this? I need it.
     
  8. CMarastoni

    CMarastoni

    Unity Technologies

    Joined:
    Mar 18, 2020
    Posts:
    894
    Let me see what I can do. Come back soon
     
    optimise likes this.
  9. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    @CMarastoni Any new update?
     
  10. Ali_Bakkal

    Ali_Bakkal

    Joined:
    Jan 26, 2013
    Posts:
    90
    @CMarastoni, Any new update ? we need that fix please.
     
  11. CMarastoni

    CMarastoni

    Unity Technologies

    Joined:
    Mar 18, 2020
    Posts:
    894
    Just modify the ShowPrefabType method in GhostAuthoringComponentEditor.cs:
    Code (CSharp):
    1.  
    2. public static bool ShowPrefabType(bool modPrefab, GhostPrefabType prefabType, ref GhostPrefabType newPrefab)
    3. {
    4.      using (var toogle = new EditorGUILayout.ToggleGroupScope("PrefabType", modPrefab))
    5.      {
    6.           newPrefab = 0; // -<---- ADD THIS
    7.           ...
    8.      }
    9. }
    10.  
    This should fix it
     
    Ali_Bakkal likes this.