• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Brandon 8 · Jan 12, 2011 at 07:45 PM · errormenupausebce0005

Pause Menu Script Help?

Ok so i copied the javasript from here and made a new javascript for my game and named it pause menu. I added it to my main menu and tried going to the game view and got this error:

Assets/Pause Menu.js(52,44): BCE0005: Unknown identifier: 'SepiaToneEffect'.

How to fix?

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

4 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Justin Warner · Jan 12, 2011 at 08:13 PM

Or, above all else, you can not copy peoples code, and actually hand code it and use it as an example, and code from it to guide you along your way like it's meant to...

The sepia effect is obviously used by the actual creator... And it's an easy fix, and it's probably in the first tutorial on Java programming that you look up to on Google/Youtube, but to be honest, I think you should learn the hard way rather than have others code for you...

Comment
Add comment · Show 1 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tobymac208 · Feb 27, 2016 at 10:00 PM 0
Share

I know this comment is old, but for anyone else that actually thinks like you.. hell with them!

We all started out somewhere, I myself wanted to get this asset because it's free, and I'm in a rush to get the game that I'm working on completed.

$$anonymous$$y next project would guide me to take more time and learn how to create my own "Advanced Pause $$anonymous$$enu", but for now, there is NOTHING wrong with trying to use a cool asset for an indie game.

Stop harassing people you dick!

avatar image
0

Answer by Bob5602 · Jan 12, 2011 at 07:55 PM

Make sure you define the identifier 'SepiaToneEffect'

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Borgo · Jan 12, 2011 at 07:55 PM

It seens that you script refer to a variable named SepiaToneEffect but it's not declared first.

Or refer to a component (or script) that is not applied to your GameObject, in this case, make sure you are using the GetComponent() function and the component is applied to your gameobject.

UPDATE:

Here is the line of the your script:
pauseFilter = Camera.main.GetComponent(SepiaToneEffect);
You need to add a component called SepiaToneEffect to your main camera.
This effect only works on Pro version, to have access to this component you need to "Import package", go to your unity install folder and search for pro package:

C:\Program Files\Unity\Editor\Standard Packages\Pro Standard Assets.unityPackage

Hope this help you. Good look!

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by $$anonymous$$ · Jan 17, 2011 at 03:37 AM

You should be able to comment out that line.

I've started a thread on the Unity forum for general discussion on the pause menu script - http://forum.unity3d.com/threads/74127-UnifyCommunity-PauseMenu

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

1 Person is following this question.

avatar image

Related Questions

Pause Menu select error 0 Answers

Pause Menu 3 Answers

hi i just got the ultimate fps camera and it is not compatible with pausemenus 0 Answers

Restart Problem 1 Answer

How to disable pausing on main menu drop down? 0 Answers

  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges