playMaker

Author Topic: Set UV Offset  (Read 4597 times)

Groo Gadgets

  • Beta Group
  • Full Member
  • *
  • Posts: 175
Set UV Offset
« on: September 11, 2012, 11:52:24 PM »
Hey guys,

I'm after an action that can offset a game object's UVs. I need this because setting the texture offset on my game object breaks dynamic batching between objects that share the same texture.

In my searching I found this post that solves the issue:
http://forum.unity3d.com/threads/29279-UV-offset-breaks-batching

Within that post there is a link to another post that has a script which offsets the UVs of the object:
http://answers.unity3d.com/questions/13316/how-to-move-uvs-of-a-mesh-so-you-can-have-two-text.html

I've tried adapting the script into an action but it's just outside of my level of experience.

I would really appreciate if smeone can convert this script to an action  :)

Cheers,

Simon

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Set UV Offset
« Reply #1 on: September 16, 2012, 07:26:45 AM »