- Home /
Question by
andrewlaboy · May 11, 2018 at 06:06 PM ·
buildrendering
Camera Rotation Script is Causing Objects to Render Only in Editor and Not Builds
using UnityEngine; using System.Collections;
public class RotateAround : MonoBehaviour {
public Transform center;
public float speed = 25;
public AudioPeer audioPeer;
public BPMControl bpmControl;
void Update () {
float angle = 0.0f;
angle += speed * audioPeer._AmplitudeBuffer;
if (center != null)
{
this.transform.RotateAround(center.position, Vector3.up, angle * Time.deltaTime);
}
}
}
I've narrowed it down to this script that makes the only camera in the scene rotate around a fixed transform to the audio of the music thats causing the issue, for some reason it works perfectly fine in editor but not the build. Ideas?
Comment
Your answer

Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Massive Flickering in build mode only 2 Answers
Why the object is pixelated in build? 1 Answer
Pixels artifacts after building project 0 Answers
shading/shadows are too dark in build but okay in unity game view 1 Answer