Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
0
Question by iStronk · Sep 19, 2015 at 02:14 PM · cameracutsceneintro

How to get an intro cinematic to play

Hey all,

I'm trying to get an intro cutscene to play, something simple that just flies towards the starting position of the player and then gives control to the player. The intro just plays over and over again. I'm sure its something simple but I can't seem to figure it out for the life of me. I have this script attached to my cutscene camera

public class CameraFunction : MonoBehaviour {

 public GameObject player;
 
 public void TriggerPlayer()
 {
     player.SetActive (true);
     this.gameObject.SetActive (false);
 }

and I dragged the player into the player function of the camera function script. The cutscene will just play over and over again but won't give control to the player. Any help would be appreciated, thank you.

Comment
Add comment · Show 2
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Positive7 · Sep 19, 2015 at 02:27 PM 0
Share

And where do you call TriggerPlayer() method?

avatar image iStronk Positive7 · Sep 19, 2015 at 02:48 PM 0
Share

That was the script given in the video provided by my professor (this is for a class). But the video was very unhelpful. Right now i've wrote this since the provided script didn't follow the rest of the tutorials given.

 public GameObject player;
 public GameObject playercam;

 // Use this for initialization
 void Start () {
 
     player.SetActive (true);
     playercam.SetActive (true);
     this.gameObject.SetActive (false);

 }

So the player and playercam do get trigger to on after I hit play, but the cutscene does not play. I think it has something to do with the void Start(), so i'm trying to research the alternatives to void Start() to allow the cutscene to play before the SetActives are set to true. This is my first class doing this in Unity so I'm still learning the basics.

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by iStronk · Sep 19, 2015 at 03:02 PM

I figured it out! By replacing void Start() with void CameraPoint1() and then adding that event to the end of the animation it works just fine. I'm sure there are more efficient methods to do this?

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

30 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

I need Help with an animation for the intro 0 Answers

Empty Animator Controller completely freezes position and rotation after Timeline finishes (very basic cutscene setup: control is not returned to the player) 1 Answer

Change shown scene from loaded scenes? 0 Answers

I want my camera to move only Y axis and my character to rotate with my camera 0 Answers

i am trying to work with wheel collides and i am having some problems 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges