Com.unity.muse.behavior error on compiling

I just installed the Behavior package and got an error on compliation. I have just added it to the project, I have not implemented any part yet. This is the error I’m getting:

Assets\MuseBehaviorIL2CPPTypes.cs(9,3): error CS0122: ‘TypedVariableModel’ is inaccessible due to its protection level

Any help would be greatly appreciated! Thank you!
Tim

Hi @thubbardnd, I’m sorry about this error! :see_no_evil: I’m aware of it and I’m working on a fix (either tomorrow or early next week). To my knowledge this only happens in IL2CPP builds, so you could try turning off IL2CPP for a bit. I’m hoping to get the fix out next week.

1 Like

Any update on this? I noticed this error when creating a webgl build.

Hi @neorocke , the new version with the fix (0.5.6) should come up on Friday or Monday :slight_smile:

1 Like

Hi @neorocke , @thubbardnd , 0.5.6 is now out with a fix for this error :slight_smile:

1 Like

I can confirm Muse Behavior 0.5.6 builds on 2023.2.2 with IL2CPP backend. Doesn’t run Behavior in WebGL Build, though it does build and launch. Tutorial project lists PC & Mac, will Muse-Behavior eventually be compatible with WebGL?

I’ve come across a couple items that aren’t specific to this topic, what is the best way to bring them up? I know I’ve already made a post on the tutorial project, but I’ve installed the package in my own project (again) to try to implement it. Are bug reports better, or new topics in this discussion board for each type of problem?

Hi @neorocke ,

Please feel free to start threads about the issues and I’ll look! Bug reports are also welcome, although this will be new for us to get them through the editor bug report so the discussions page might be faster right now :slight_smile:

I’m sorry the WebGL build isn’t working. Is it the example project, the tutorial, or something else? Any specific errors?

My own project. I added Quantum Console to see logs at playtime, it doesnt look like there are any at runtime. Console does have a warning after launching Build and Run:

Saving has no effect. Your class ‘UnityEditor.WebGL.HttpServerEditorWrapper’ is missing the FilePathAttribute. Use this attribute to specify where to save your ScriptableSingleton.
Only call Save() and use this attribute if you want your state to survive between sessions of Unity.
UnityEditor.BuildPlayerWindow:BuildPlayerAndRun

Single node graph with patrol node. On WebGL build, game object does not move.

Behavior Graph

In-Editor Play Mode
WebGL in Editor Playmode

Build and Run
WebGL Build and Run

Switching target platform from webgl to windows, the behavior runs as intended.

Thank you! I believe I know where to look :slight_smile: Can you please confirm which version of Unity this is on? The gif is a bit low res but I think it’s 2021?

Sorry about that, 2023.2.2f1 .

Muse is being replaced with Unity AI and all Muse experimental packages are now sunset. Read more about Unity AI here: Unity AI: AI Game Development Tools & RT3D Software | Unity