- How do I change the ambient lighting in scene 1 and scene 2
- How do I make an object attatched to the first person controller be showing in scene 2 but not in scene 1
Is there scripting involved for me to solve these problems?
Is there scripting involved for me to solve these problems?
You can kill both problems with a single script like this attached to the player:
public var sceneLight: Color; // set the scene ambient light in the Inspector
public var objectToShow: GameObject; // drag the object to show here
public var showObject: boolean; // should show (true) or hide (false) the object?
function Awake(){
RenderSettings.ambientLight = sceneLight;
objectToShow.SetActive(showObject);
}
Select the player and set the variables in each scene.