Question, World Object is Transparent.


  • This is my first attempt at creating a mod to add a new object, so I just started with a small chest.

    I have Unity 2017 and I've imported the Eco asset and everything explained here https://github.com/StrangeLoopGames/EcoModKit/wiki

    In my Unity project I copied the SampleItem and renamed it to SmallChestItem then gave it a new foreground icon. This part works in the game:
    image.png

    Then I copied the SampleObject and renamed it SmallChestObject and I gave it a material auto-created by Unity from a wooden crate texture I saved in the Assets\EcoModKit\Materials\ folder:
    image.png

    I created these files by copied other object files and modifying them to go with the objects:

    • \Mods\Objects\SmallChestObject.cs
    • \Mods\AutoGen\WorldObject\SmallChest.cs
      And I modified \Mods\WorldObjectOccupancyAutoGen.cs to include SmallChest.

    But in the game the world object just appears transparent:
    image.png

    I must be doing something wrong with how the texture is included in the asset bundle or something.
    Any help would be appreciated.

    Thanks


  • 2
    Posts
    561
    Views
    Log in to reply


  • This is a Bug in 6.4+ It has been posted on GitHub :)

    --MW--


2
Posts
561
Views
Log in to reply

Internal error.

Oops! Looks like something went wrong!