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 Stephanides · Nov 24, 2014 at 08:43 PM · scaledynamicwall

Problem with dynamic wall

alt text

Hello i Have a problem, i want to make dynamic wall by drag a mouse, but if i scale it i get a wall behind the original.Its some option to make long wall which look like this small original ?

chyba.png (509.5 kB)
Comment
Add comment · Show 1
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 MrSoad · Nov 24, 2014 at 08:47 PM 0
Share

You could instantiate the small original prefab at regular intervals(width of section) in relation to the mouse drag, however you would have to hide some of the most recently instantiated one with a depth mask shader of some sort(which would reveal this section in relation to the drag). You can probably use this to do what you need :

http://wiki.unity3d.com/index.php?title=Depth$$anonymous$$ask

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by YoungDeveloper · Nov 24, 2014 at 09:04 PM

The counter question is how exactly you want it to stretch. It's either per any (small values) or predefined certain chunks. Most likely you'd want to choose predefined chunks.

  • Use raycast from screen register hit on ground

  • You'll need list of structure objects

  • On click event Instantiate part

  • store parts in list or check for nearby (depends on your need)

  • give possible "next-step" solutions if build is in process

I've created something similar, but for editor. Check it out for reference how it might work technically. http://gyazo.com/d2b6eb8810671b74a70119ad1eca9219

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 neosca · Jan 17, 2017 at 12:27 PM 0
Share

Hello,

Can you please share your source code to achieve the effect you are showing in the link?

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

How can I dynamically changed where buttons are placed? 2 Answers

gameObject not dynamically scaling via the update method 1 Answer

Create a Dynamic Wall 2 Answers

Problem with dynamic wall 0 Answers

Programming dynamic barriers 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