You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, trying to use the plugin in Unity 2021.3 LTS and it's giving the error that the GetOrAddComponent<>() function does not exist. With a little bit of research, this is a GameObject & Transform extension method, and is not part of a Unity 2021.3 LTS base install. These errors are on lines 170 & 181 of the "LibreFracture.cs" script.
I made a quick fix on my end by replacing each of these with "GetComponent<>()" & "AddComponent<>()" calls as needed (checking of course if we got the component before calling AddComponent) and this seems to work just fine.
As a side note, really love the library so far! Using it on a large project. I'd love to help contribute/maintain the project as well if you're open to it.
The text was updated successfully, but these errors were encountered:
Hello! First of all thanks for the interest on this tool!
I am aware of this little problem of compatibillity, I used that short utility method just for ease of use, but your solution to fix it should be more than enough.
I'll try to find some time to wrap these simple fixes in a new release, but for now thanks for noticing it!
Hey, trying to use the plugin in Unity 2021.3 LTS and it's giving the error that the
GetOrAddComponent<>()
function does not exist. With a little bit of research, this is a GameObject & Transform extension method, and is not part of a Unity 2021.3 LTS base install. These errors are on lines 170 & 181 of the "LibreFracture.cs" script.I made a quick fix on my end by replacing each of these with "GetComponent<>()" & "AddComponent<>()" calls as needed (checking of course if we got the component before calling AddComponent) and this seems to work just fine.
As a side note, really love the library so far! Using it on a large project. I'd love to help contribute/maintain the project as well if you're open to it.
The text was updated successfully, but these errors were encountered: