What files are responsible for script components on prefabs?

When I do an SVN commit of my changes, then do a test checkout of my Unity project,
some of my prefabs will be missing their script component.

Like, say I have a prefab called: SystemCanvas, which is parent to a button called: SystemButton, and that has a component called: “SystemButton”.

The “SystemButton” will be missing.

103543-missing-nothing-selected.png

I’ve noticed this problem on a lot of prefabs, and I don’t know why this is happening.

I have the SystemCanvas.prefab, and SystemCanvas.prefab.meta comitted already, so I must be missing some other file.

Edit: I already committed SystemButton.cs.

You also need to check in the “SystemButton.cs” file, this is the component you created and attached to your button.

Edit: And also “SystemButton.cs.meta” as @Bunny83 mentions below.

Another idea: Be prepared to do a hard revert on your svn, or use a copy of your project and a new svn repo to try this. Set ‘Asset Serialization Mode’ to ‘Force Text’ (Edit/Project Settings/Editor)