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
Hi! I want to add a MonoScript to the file I'm editing but unfortunately its definition doesn't exist in this file, I've tried every other file containing that MonoScript to try to add it to the file I'm editing but it fails. error and not working.
I tried adding like this:
The two parameters assetsPPtr and newBaseField were taken by me from another file containing the MonoScript I needed.
As a result, when I finished editing the file and tested it again with AssetStudio, I received the error as shown below:
The text was updated successfully, but these errors were encountered:
newBaseField needs to have the rest of the MonoBehaviour fields. You don't show how it's created, but usually you add to ScriptTypes first, then call manager.CreateValueBaseField which will pick up the new script type in ScriptTypes and include the extra MonoBehaviour fields. Then you can fill out those extra fields as you need.
This is how I created the newBaseField, it was created through another file then I called the addMonoBehaviour function from the file I was editing and passed it in the newBaseField parameter, the newBaseField was created as I expected but it didn't work when I finish editing.
Hi! I want to add a MonoScript to the file I'm editing but unfortunately its definition doesn't exist in this file, I've tried every other file containing that MonoScript to try to add it to the file I'm editing but it fails. error and not working.
I tried adding like this:
The two parameters assetsPPtr and newBaseField were taken by me from another file containing the MonoScript I needed.
As a result, when I finished editing the file and tested it again with AssetStudio, I received the error as shown below:
The text was updated successfully, but these errors were encountered: