Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Bug Can't find GameObjectConversionUtility

Discussion in 'Entity Component System' started by RisingSunStudios, Feb 17, 2023.

  1. RisingSunStudios

    RisingSunStudios

    Joined:
    May 23, 2018
    Posts:
    32
    As the thread title says - installed 1.0.0-pre.44 of entities and the dependencies, also 0.61.0-preview.7 Hybrid Renderer but I am still unable to find any references to GameObjectConversionUtility or any way to convert gameobjects to entities.

    What am I missing?
     
  2. redwren

    redwren

    Joined:
    Aug 2, 2019
    Posts:
    69
  3. RisingSunStudios

    RisingSunStudios

    Joined:
    May 23, 2018
    Posts:
    32
    No this is a brand new project. It can't find any references to IConvertGameObjectToEntity, no GameObjectConversionUtility, no ConvertToEntity component, nothing at all.

    Have tried adding a new asmdef and referencing all the others, still nothing.

    Also for info, I have Entities.Graphics installed.
     
    Last edited: Feb 18, 2023
  4. redwren

    redwren

    Joined:
    Aug 2, 2019
    Posts:
    69
    I assumed you were looking for those symbols because you were upgrading from an earlier version of the Entities package. Why are you trying to find them? They were removed in the Entities 1.0 release. Or maybe, tell us what you are trying to accomplish and we can tell you how to do it using the version of the package you're using. The documentation for converting game objects to entities is here: https://docs.unity3d.com/Packages/com.unity.entities@1.0/manual/baking.html
     
  5. Spy-Master

    Spy-Master

    Joined:
    Aug 4, 2022
    Posts:
    285
    Did you read what was linked? The things you’re listing are from the old way and not supported anymore. Use baking.
     
  6. RisingSunStudios

    RisingSunStudios

    Joined:
    May 23, 2018
    Posts:
    32
    Not sure if you intended to come across as rude, but yes, I did. However I missed the really un-obvious // BEFORE comment. The linked article could have been written much clearer - why use a comment shown in light gray for something so critical?

    Also the line "This example shows how to change the usage of IConvertGameObjectToEntity to a Baker:" does not imply these features were removed, so no, the article is not clear from reading.

    Thanks for your help!
     
  7. Spy-Master

    Spy-Master

    Joined:
    Aug 4, 2022
    Posts:
    285
    You also missed “The previous conversion system has been replaced with Baking.”
    Rudeness: maybe it’s rudely terse. Sure.
     
  8. RisingSunStudios

    RisingSunStudios

    Joined:
    May 23, 2018
    Posts:
    32
    Again, that does not imply that those classes and interfaces were removed.