The issue of the question was resolved by OP, no answer required.
Adding classes to objects
When I try to add a C# file to an object I get an error message. The about the class name not existing but it does exist. the message I get is "Can't add component 'EnergyPulsePower' because it doesn't exist. Check to see if the file name and class name match."
$$anonymous$$ake sure your class looks something like this:
using UnityEngine;
public class EnergyPulsePower : $$anonymous$$onoBehaviour
{
// ...
}
The name of the class has to be the same as the name of the file for Unity to see it as a component script that it can attach to a game object.
P.S. It would help if you paste your code in the future. Otherwise it is unclear what the issue might be.
Thank you for your help. I resolved the issue by downloading a newer version of Unity 3D
Follow this Question
Related Questions
C# Find specific object by getting one of its variables 0 Answers
Can't get to work a non behaviour constructor with random generated variables 1 Answer
Changing an argument to a var and vice-versa 0 Answers
C# script, Image Resolutions 0 Answers
How would i increase the speed of my enemies? Thanks 1 Answer