- Home /
Question by
ivaylo5ev · Aug 26, 2017 at 05:11 PM ·
bug-perhapspost-processingpublic static
AssetPostprocessor OnProcessAllAssets not called if class and method are public
I've come to the situation of not having my custom AssetPostprocessor
called by unity. Here is how the class looked initially:
public abstract class MyAbstractAssetPostprocessor : AssetPostprocessor
{
public static void OnPostprocessAllAssets(string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromAssetPaths)
{
Debug.Log("MyAbstractAssetPostprocessor is called");
}
}
I never saw the debug message until I removed the public
accessors from both the class and the static method it started working. The postprocessor in question is defined in a dll, not directly inside the Unity project.
So, my question is, do I need not to use the public accessor for the class/method above? Is it possible there is a bug in Unity that caused the observed by me behavior?
Comment
Your answer
Follow this Question
Related Questions
How do you change PP effects at runtime? 0 Answers
Whole Numbers Divide Incorrectly....BUG? 0 Answers
Canvas wired rotation bug 1 Answer
When Animation wont switch from idle 0 Answers