Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help  Change UV anchor runtime
#1
Is this possible?

I want to fake a rope paying extending like a endless conveyor belt. 
Alternatively I would use two cursors to add in one end and delete in the other, but i guess it would have higher performance to not simulate particles at all and just change the uv anchor, however doing "renderer.uvAnchor = renderer.uvAnchor - speed * Time.deltaTime" does not work at runtime or in executeineditormode.

(19-11-2019, 01:15 PM)TheMunk Wrote: Is this possible?

I want to fake a rope paying extending like a endless conveyor belt. 
Alternatively I would use two cursors to add in one end and delete in the other, but i guess it would have higher performance to not simulate particles at all and just change the uv anchor, however doing "renderer.uvAnchor = renderer.uvAnchor - speed * Time.deltaTime" does not work at runtime or in executeineditormode.

Seems like calling UpdateRenderer() with null paramters works fine. Is this inteded?

EDIT: It doesn't work when building to Oculus quest. I can't figure out why...
Reply


Messages In This Thread
Change UV anchor runtime - by TheMunk - 19-11-2019, 01:15 PM
RE: Change UV anchor runtime - by josemendez - 19-11-2019, 04:13 PM
RE: Change UV anchor runtime - by TheMunk - 20-11-2019, 11:36 AM