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 defterniko · Apr 15, 2013 at 12:30 PM · texturetransformmaterialruntime

Apply a new texture at runtime to slowly cover the transform

Basically I am implementing an element in a game where the player can inhabit another region. Once they have clicked to inhabit it, I want the flag of their army to slowly become the texture for that region.

At the moment I am just applying the texture of the flag straight away using transform.renderer.material = BritishFlag; Is there a way to have the flag slowly take over the region, to represent a time period of invasion?

Comment
Add comment · Show 4
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 Owen-Reynolds · Apr 15, 2013 at 01:31 PM 0
Share

Should it be a full-flag fade from flag#1 to flag#2, or a left-to-right "wipe" (a line with flag#2 on left, flag#1 on right?) Or will the flag just fade in like a ghost materializing? Or, it might look better to have the flag just go up a pole? Or maybe unfurl (like a rubber flag being slowly stretched out)? Or have the entire flag+pole start small and grow?

avatar image defterniko · Apr 15, 2013 at 02:17 PM 0
Share

I was thinking like a rubber flag being slowly stretched out. Basically the world view is of the world map (like the defcon game) and then once the players invades another region the flag slowly changes from grey (representing an u-inhabited land) to the flag of the players army. Hopefully that's a bit clearer

avatar image Owen-Reynolds · Apr 15, 2013 at 09:09 PM 1
Share

That's two things. One problem with a fade-in is that it can't communicate very precisely how long until it's done. I can see a raising flag and know "4/5ths," but not so much knowing a fade-in is 4/5ths done.

A stretching-out flag would just be a scale change (can see how it would look by sliding scale.x yourself.) If you have an outline of a full grey flag, easy to see how close you are to a take-over.

avatar image defterniko · Apr 16, 2013 at 09:25 AM 0
Share

okay thanks very much owen, I think I know what to do now

1 Reply

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by defterniko · Apr 18, 2013 at 04:52 PM

In the end I decided to make a selection of textures, one where the flag is just appearing, one where it's half way across and then a third where it is three quarters visible.

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

12 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

Related Questions

dynamic images for textures ar runtime 2 Answers

Problem with changing material at runtime. 0 Answers

Texture change on multi material character 1 Answer

Replace texture without touching materials? 1 Answer

How to update texture during runtime to display damage? 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