Skocz do zawartości
View in the app

A better way to browse. Learn more.

Max3D.pl

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Napisano

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.

  • Odpowiedzi 1
  • Wyświetleń 1,3k
  • Created
  • Ostatniej odpowiedzi

Top Posters In This Topic

Napisano

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] );
       }
   }
}

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Powiadomienie o plikach cookie

Wykorzystujemy cookies. Przeczytaj więcej Polityka prywatności

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.