Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is Obi Rope compatible with Unity 6 LTS?
#1
Is Obi Rope compatible with Unity 6 LTS?
Reply
#2
(18-11-2024, 04:01 PM)FadelMS Wrote: Is Obi Rope compatible with Unity 6 LTS?

Hi,

Yes it is. Let me know if you encounter any issues.

kind regards,
Reply
#3
(18-11-2024, 09:45 PM)josemendez Wrote: Hi,

Yes it is. Let me know if you encounter any issues.

kind regards,
I am sing Unity 6 26 URP. Obi Rope generates the same error 200 times. Here is the error:

ArgumentException: The Object you want to instantiate is null.
UnityEngine.Object.Instantiate[T] (T original) (at <b5bf0c891ea345fe93688f835df32fdc>:0)
Obi.ComputeSolverImpl..ctor (Obi.ObiSolver solver) (at Assets/Obi/Scripts/Common/Backends/Compute/Solver/ComputeSolverImpl.cs:194)
Obi.ComputeBackend.CreateSolver (Obi.ObiSolver solver, System.Int32 capacity) (at Assets/Obi/Scripts/Common/Backends/Compute/ComputeBackend.cs:8)
Obi.ObiSolver.Initialize () (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1253)
Obi.ObiSolver.InsertBufferedActor (Obi.ObiActor actor) (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1932)
Obi.ObiSolver.AddActor (Obi.ObiActor actor) (at Assets/Obi/Scripts/Common/Solver/ObiSolver.cs:1870)
Obi.ObiActor.AddToSolver () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:367)
Obi.ObiActor.OnEnable () (at Assets/Obi/Scripts/Common/Actors/ObiActor.cs:338)
Reply
#4
(19-11-2024, 06:13 PM)FadelMS Wrote: I am sing Unity 6 26 URP. Obi Rope generates the same error 200 times. Here is the error:

ArgumentException: The Object you want to instantiate is null.
UnityEngine.Object.Instantiate[T] (T original) (at <b5bf0c891ea345fe93688f835df32fdc>:0)
Obi.ComputeSolverImpl..ctor (Obi.ObiSolver solver) (at Assets/Obi/Scripts/Common/Backends/Compute/Solver/ComputeSolverImpl.cs:194)

Hi,

I´m unable to reproduce this problem. Installed Obi Rope 7.0.3 on Unity 6, works without issue.

The error message you shared points to the following line:
Code:
GameObject.Instantiate(Resources.Load<ComputeShader>("Compute/Solver"));

A null reference here means the /Obi/Resources folder has either been removed after installing the asset, or the asset has been improperly installed. Please follow the setup guide, and don't delete any asset folders/files after completing installation as doing so will prevent the asset from working properly - or at all.

kind regards,
Reply
#5
(19-11-2024, 09:08 PM)josemendez Wrote: Hi,

I´m unable to reproduce this problem. Installed Obi Rope 7.0.3 on Unity 6, works without issue.

The error message you shared points to the following line:
Code:
GameObject.Instantiate(Resources.Load<ComputeShader>("Compute/Solver"));

A null reference here means the /Obi/Resources folder has either been removed after installing the asset, or the asset has been improperly installed. Please follow the setup guide, and don't delete any asset folders/files after completing installation as doing so will prevent the asset from working properly - or at all.

kind regards,
Hi,
Thank you for responding.
I followed the setup guide and installed Obi Rope in a fresh Unity 6 LTS project without making any changes, but I encountered the same error. Interestingly, when I try the sample scenes, the errors disappear, and the asset works as expected.
I did notice that Obi Rope installs an older version of the Jobs package. Removing it later has no effect as Unity 6 installs Jobs and its dependencies by default.
I tried importing Obi Rope by skipping dependencies and got the same error.
Reply
#6
(20-11-2024, 06:10 AM)FadelMS Wrote: Hi,
Thank you for responding.
I followed the setup guide and installed Obi Rope in a fresh Unity 6 LTS project without making any changes, but I encountered the same error. Interestingly, when I try the sample scenes, the errors disappear, and the asset works as expected.

Hi,

If running a scene does not trigger the issue, would you mind specifying when does it happen? Is it immediately upon importing the asset, even without running it?

(20-11-2024, 06:10 AM)FadelMS Wrote: I did notice that Obi Rope installs an older version of the Jobs package. Removing it later has no effect as Unity 6 installs Jobs and its dependencies by default.
I tried importing Obi Rope by skipping dependencies and got the same error.

This issue has nothing to do with dependency packages. The cause of the problem is that the asset is trying to load a compute shader (normally located in Obi/Resources/Compute/) but is unable to find it. That’s why I assumed either the folder or its contents had been removed or improperly imported during installation. Note this would only happen when using the compute (GPU) backend, since the default backend (Burst-CPU) does not use compute shaders.

Kind regards,
Reply
#7
(20-11-2024, 07:40 AM)josemendez Wrote: Hi,

If running a scene does not trigger the issue, would you mind specifying when does it happen? Is it immediately upon importing the asset, even without running it?


This issue has nothing to do with dependency packages. The cause of the problem is that the asset is trying to load a compute shader (normally located in Obi/Resources/Compute/) but is unable to find it. That’s why I assumed either the folder or its contents had been removed or improperly imported during installation. Note this would only happen when using the compute (GPU) backend, since the default backend (Burst-CPU) does not use compute shaders.

Kind regards,
The error occurs before the import process is completed, and it doesn’t appear again afterward.
Regarding the backend, I haven’t modified the default settings.
Reply
#8
(20-11-2024, 12:36 PM)FadelMS Wrote: The error occurs before the import process is completed, and it doesn’t appear again afterward.

I'm not sure what you mean by this. While importing an asset, Unity is not executing any runtime code so it is not possible for runtime errors such as this one to take place.

Anyway, if the error goes away after the asset is fully imported and doesn't appear again it should not be a problem. Let me know if you need further help.

kind regards,
Reply