Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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 salginci · Jul 08, 2013 at 02:02 PM · instantiatescreenjs - c#

Prefab instantiate

Hello , I am new on unity. The link below contains what i am trying to do.

I prepared a prefab and i can instantiate it on runtime at a v3 point.

But the thing I couldnt do is that, The ball needs to appear at the bottom of the screen. Can anyone help me ?

http://www.youtube.com/watch?v=d4egoWvljI4

Comment
Add comment · Show 6
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 amphoterik · Jul 08, 2013 at 02:36 PM 0
Share

I cannot watch the video as I am at work. Could you explain your problem a little better please?

avatar image salginci · Jul 08, 2013 at 02:52 PM 0
Share

Thank you for your response. This is a basketball game. There is a basket. and i want user to throw the ball with touch. but the problem is , When I instantiate at runtime , I would like ball to appear at the bottom of iphone screen.

avatar image ExCx · Jul 08, 2013 at 02:54 PM 0
Share

Did you mean the co$$anonymous$$g of the ball animation? Or the position of the camera? If you can instantiate the ball in anywhere you want, then you can place it on the bottom of the screen, what is the problem here?

avatar image salginci · Jul 08, 2013 at 02:55 PM 0
Share

Also I am trying to embed vufio sdk. so when vufio fired, object position changes. I always want ball to appear at the bottom of iphone screen.

avatar image salginci · Jul 08, 2013 at 03:02 PM 0
Share

I have attached a screent from iphone as well.
problem is obect appers at posstion 1 , but i want it to appear as 2. alt text

screen.jpg (44.8 kB)
Show more comments

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by dorpeleg · Jul 08, 2013 at 02:57 PM

You need to position the ball next to the camera.

Get the camera position, add a bit forward and a bit down, and that's the location you need to instantiate the ball in.

Comment
Add comment · Show 2 · 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 salginci · Jul 08, 2013 at 03:04 PM 0
Share

When the main state yes it is working , but , I am using vufiro sdk. / When an object tracked , position- scale changes

avatar image dorpeleg · Jul 08, 2013 at 03:13 PM 0
Share

I'm not sure what vufiro sdk is, but you might wanna make it ignore the ball when instantiating (if possible).

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

18 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

Related Questions

A node in a childnode? 1 Answer

Can i add another splash screen after the Unity one? 1 Answer

[Solved] Unable to instantiate an object from within the OnTriggerEnter callback. 1 Answer

Instantiating rigged armor 0 Answers

How to Instantiate a single object after regular intevals ? 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