- Home /
DLL NullReferenceException
Hi.
This is my code:
Transform mgTarget = mg.GetMarkTarget();
print(mgTarget);
print(mgTarget.GetComponent<MarkPoint>());
My problem is that the last line returns Null.
The script is on the GameObject, but it's a DLL plugin script from an asset.
How can I acces the script?
Bumping. Having the same problem and it seems no one has responded yet...
Answer by AndreasX12 · May 11, 2015 at 07:35 AM
I believe I eventually solved this problem by asking the asset developer for the source code. The DLL had been compiled from existing C# scripts and therefore the only other solution would be reverse engineering, which probably isn't very easy.
Your answer
Follow this Question
Related Questions
Can't use GetComponent in C# 3 Answers
Variables in components always returning null? 2 Answers
UnityInterface.dll problem. Could it be because of different Unity version ? 1 Answer
NullReference Problem with pragma strict 1 Answer
NullReferenceException when using GetComponent to access script variables 1 Answer