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 /
avatar image
0
Question by Introverted-Shinso · Jun 03, 2017 at 11:34 AM · 3d

Presentation Idea

I was wondering if there was a way to assign key commands to a camera path. Like if I press this button, the camera moves from one point to the other. I thought that this would perfect to use along with Live2D assets that I'm going to make. I'd have the assets somewhere and the camera would just go to them. Somewhat like a 3D powerpoint.

Thank you.

Comment
Add comment
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

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Osmious · Jun 06, 2017 at 07:57 AM

Sorry @Introverted-Shinso but your question does not clarify what you want.

From what I figured, it seems like you need a system that plays animations on a specific keypress, to do this... you need to :

1) Attach the script given in bottom to the GameObject you want to animate

2) Create an animation and mark it as legacy

3) Add the animation to the animation component automatically added

4) Fill in the values asked in Editor for the script (Unless you'll get null reference exceptions)

5) press ctrl/cmd + p

6) enjoy!

The script:

 //AxisAnimation v1.1
 //
 //Licensed under creative commons 0 (CC0) Share-Alike
 //TESTED WITH UNITY 5.6, ERRORS MAY APPEAR ON OTHER VERSIONS
 using System;
 using UnityEngine;
 
 [RequireComponent(typeof (Animation))]
 public class AxisAnimation : MonoBehaviour {
 
     //public variables
     public String[] AnimationName;
     public String ButtonToUse;
 
     //private variables
     private Animation AnimationObject;
 
     //called once when object/script is enabled before first update call
     void Start(){
         AnimationObject = gameObject.GetComponent<Animation>();
     }
     //called every Frame
     void Update(){
         if(Input.GetButtonDown(ButtonToUse)){
             foreach(String i in AnimationName){
                 AnimationObject.Play(i);
             }
         }
     }
 }


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
avatar image
0

Answer by Introverted-Shinso · Jun 16, 2017 at 06:30 AM

@osmious

yes! Thank you! I'm very sorry about the misunderstanding. I just started using unity and am finding things sort've hazy and this is probably something outside my skill level. Thank you for your answer!

Comment
Add comment · Show 1 · 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
avatar image Osmious · Jun 17, 2017 at 04:11 PM 0
Share

Happy to help @Introverted-Shinso

Hope your project goes well... Just one more thing, Click the checkmark besides my answer so anyone browsing through the site knows that This question has been answered and they can be helped too

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Translate a set of points 1 Answer

How to make a task spawn infront of a player in 3d hovering in the air and then he can click on some part of this "task" and continue if he is right 0 Answers

How to transform different 3d object with button 1 Answer

Touch to move 3 Answers

How to get my humanoid models base position in the scene view into a T-Pose 1 Answer


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