Forum begins after the advertisement:


[Version 1.0.0] TagSelf Script Error When Building

Home Forums Unity Assets Support Underwater Camera FX [Version 1.0.0] TagSelf Script Error When Building

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #18246
    Glenn Yeo
    Level 6
    Participant
    Helpful?
    Up
    0
    ::

    We’ve recently received a report about an error that appears when building with the Underwater Asset Pack.

    If you are seeing Assets\Underwater-Effect\Scripts\Miscellaneous\TagSelf.cs(8,10): error CS0246: The type or namespace name 'MenuItemAttribute' could not be found (are you missing a using directive or an assembly reference?) when attempting to build, a solution is to either:

    A) Wrap the entire script with a conditional by adding #if UNITY_EDITOR at the first line of the script, and then #endif at the last line.

    B) Move the script into an Editor folder, this will exclude the script from being included with the build.

    We will update the asset pack soon, but you can use this fix in the meantime.

Viewing 1 post (of 1 total)
  • You must be logged in to reply to this topic.

Go to Login Page →


Advertisement below: