2D Toolkit Forum

2D Toolkit => Support => Topic started by: alkaszl on May 23, 2014, 03:36:15 pm

Title: tk2dCamera prefab adding camera component
Post by: alkaszl on May 23, 2014, 03:36:15 pm
I am setting up a camera that I want to use in every scene without having to set it up every time. To achieve this, I just made the camera into a prefab. When I do this, the base Camera component built into Unity is also being added to the object. So there is a Camera component and a tk2D component on the same object when I make it into a prefab. If I remove the Camera component, the camera does not work anymore. Will the two components interfere with each as long as I don't touch the settings on the base Camera component?
Title: Re: tk2dCamera prefab adding camera component
Post by: unikronsoftware on May 23, 2014, 05:21:47 pm
The tk2dCamera component needs a camera to work, there is one when you create it, just hidden.
Title: Re: tk2dCamera prefab adding camera component
Post by: alkaszl on May 23, 2014, 06:13:24 pm
Okay, I figured so. Thank you :)