Skip to content

Problem with Builds & IL2CPP #1

@TeorikDeli

Description

@TeorikDeli

Hi!

First of all, GREAT plugin! Thank you! I've changed all UnityEvents and integrated your plugin to my game. It is very flexible and just perfect for my needs 🤘🏻

I'm using 2017.2 & Mac

First, I want to report you a bug which is sometimes happens and I fixed it with a workaround (I don't think it's a good one). SerializableSystemType:53 causes Errors when m_AssemblyQualifiedName is null. It happens when I select an Object in the inspector and Inspector gets refreshed continuously and I can't change anything without pressing cmd+z. I don't know why it'd be null, but I added if(m_AssemblyQualifiedName == null) m_AssemblyQualifiedName=""; just before :53 and the errors has gone. I think this happens after the first actions that I add.

My main problem is builds. I once saw an IL2CPP error, which says "... doesn't supported in IL2CPP ...", I couldn't reproduced this same error again. But, I have a reproducible problem this time.

This is my example action list:

ekran resmi 2017-12-09 21 05 08

Some methods doesn't work in the builds. Everything works fine in the editor. These are the messages:
"Trying to invoke SerializableAction, but the serialized action target set_enabled has been deleted!
UnityEngine.DebugLogHandler:LogFormat(LogType, Object, String, Object[])
UnityEngine.Logger:Log(LogType, Object)
UnityEngine.Debug:LogWarning(Object)
SerializableActions.SerializableAction:Invoke()
c__Iterator0:MoveNext()
UnityEngine.SetupCoroutine:InvokeMoveNext(IEnumerator, IntPtr)

(Filename: /Users/builduser/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)"
"Trying to invoke SerializableAction, but the serialized action target set_bodyType has been deleted!"
"Trying to invoke SerializableAction, but the serialized action target set_enabled has been deleted!"
"Trying to invoke SerializableAction, but the serialized action target set_enabled has been deleted!"
"Trying to invoke SerializableAction, but the serialized action target set_enabled has been deleted!"
"Trying to invoke SerializableAction, but the serialized action target SetParent has been deleted!"
"Trying to invoke SerializableAction, but the serialized action target SetParent has been deleted!"
"Trying to invoke SerializableAction, but the serialized action target set_enabled has been deleted!"
"Trying to invoke SerializableAction, but the serialized action target set_simulated has been deleted!"
"Trying to invoke SerializableAction, but the serialized action target SetParent has been deleted!"

This method invoking at the end of an IEnumerator by the way. But, I don't think that's the problem. It probably can't find Unity methods or these are not serializing while building the project. Also, my script is attached to a prefab and all referenced objects are in that prefab as child objects (as seen in the screenshot).

Do you have any suggestions to fix that, or anything you want me to try?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions