Please use code tags .
You say you’re trying to modify the variables on a prefab? Do you mean an instance of a prefab that is located in your scene, or do you mean the actual prefab asset in your Project view? I don’t believe the assets can be modified by runtime scripts (even temporarily).