carrido Posted May 18, 2013 Share Posted May 18, 2013 Witam czy ktoś wie jak zrobić kamera cut w Unity? Nie chcę mieć prezentacji tylko w locie ,chciałbym zrobić kilka ujęć jak w filmie. Link to comment Share on other sites More sharing options...
bolitic Posted May 20, 2013 Share Posted May 20, 2013 Najlepiej stworzyc pare kamer i kontrolowac ich depth - poniewaz tak ladnie podziekowales znowu lapaj scene :) CameraCUT.zip Na Main Camera masz scrypcik w ktorym tworzysz tablice kamer oraz tablice delayow przeskoku miedzy nimi - zobacz jak to jest zrobione w scenie. EDIT: Daje tez caly kod tego skryptu: using UnityEngine; using System.Collections; public class CameraCUT : MonoBehaviour { public Camera[] cameras; public float[] delays; private int _currentID = 0; void Start () { cameras[_currentID].depth = 100; cameras[_currentID + 1].depth = -100; StartCoroutine ( "nextCamera", delays[_currentID] ); } private IEnumerator nextCamera ( float delay ) { if ( _currentID + 1 { yield return new WaitForSeconds ( delay ); cameras[_currentID].depth = -100; _currentID++; cameras[_currentID].depth = 100; StartCoroutine ( "nextCamera", delays[_currentID] ); } } } Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now