GithubHelp home page GithubHelp logo

Comments (5)

sync-by-unito avatar sync-by-unito commented on June 29, 2024

➤ PM Bot commented:

Jira ticket: RNET-1160

from realm-dotnet.

nirinchev avatar nirinchev commented on June 29, 2024

How does AssetBundleRealmObject look like? Also, do you think you can share the built .dll that contains the models? I'd be curious to see what the compiled library looks like.

from realm-dotnet.

jykgod avatar jykgod commented on June 29, 2024

How does AssetBundleRealmObject look like? Also, do you think you can share the built .dll that contains the models? I'd be curious to see what the compiled library looks like.

using System.Collections.Generic;
using Realms;

namespace Orcas.Asset
{
    [Preserve(AllMembers = true)]
    public class AssetBundleRealmObject : RealmObject
    {
        [PrimaryKey]
        public string Name { get; set; }
        public string FileName { get; set; }
        public string Hash { get; set; }
        public string CRC { get; set; }
        public long Size { get; set; }
        public IList<AssetBundleRealmObject> Dependencies { get; }
    }
}

I'm not sure what the status of the DLL file is during the build process because we first compile it using HybridCLR before proceeding with the build process. I noticed in the packaging log that weaving was automatically executed during the execution of the BuildPlayerScripts script, and theoretically it should be correct by the time WriteFileList is executed. However, my current guess is that maybe the DLL loaded into memory is still from before weaving, which causes an error.

from realm-dotnet.

jykgod avatar jykgod commented on June 29, 2024

How does AssetBundleRealmObject look like? Also, do you think you can share the built .dll that contains the models? I'd be curious to see what the compiled library looks like.

DLL:
Orcas.Asset.Manager.zip

from realm-dotnet.

jykgod avatar jykgod commented on June 29, 2024

@nirinchev
I just tried separating the HybridCLR's compilation and project's packaging into two Unity cmd commands, with a woven cmd commands in between, and it compiled successfully! Thank you!

public static void Woven()
    {
        RealmWeaver.UnityWeaver.Initialize();
        RealmWeaver.UnityWeaver.WeaveAllAssembliesMenuItem();
        Thread.Sleep(20000);
    }

from realm-dotnet.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.