- Home /
Question by
SEIFFFFFFFF · Jul 14, 2017 at 11:46 PM ·
effectcamera script
When I play the scene some weird Metallic effects happen after I made this Script:
after I made this script and played the scene everything gets metallic:
using UnityEngine; using System.Collections;
public class CamerA : MonoBehaviour
{
//Variables
public Transform player;
public float smooth = 0.3f;
public float height;
private Vector3 velocity = Vector3.zero;
//Methods
void Update()
{
Vector3 pos = new Vector3();
pos.x = player.position.x;
pos.z = player.position.z ;
pos.y = player.position.y ;
transform.position = Vector3.SmoothDamp(transform.position, pos, ref velocity, smooth);
}
}
[1]: /storage/temp/97766-screenshot-8.png
screenshot-8.png
(493.2 kB)
Comment
Answer by TWicked · Jul 15, 2017 at 03:34 AM
I do not think its your script, I would guess its your materials and light
Answer by SEIFFFFFFFF · Jul 15, 2017 at 01:40 PM
Yeah but this effect only happens when I add the script to the camera... BTW, My camera views as orthographic @TWicked
Your answer
Follow this Question
Related Questions
How to blur my background 2 Answers
Subnautica like underwater effect / rays 0 Answers
How to do a heat-haze effect in unity (FREE)? 1 Answer
Create wind over sand effect! 2 Answers
Help with my Light Flicker Script... 1 Answer