Playmaker Forum

PlayMaker Feedback => Action Requests => Topic started by: Groo Gadgets on September 11, 2012, 11:52:24 PM

Title: Set UV Offset
Post by: Groo Gadgets 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 (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 (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
Title: Re: Set UV Offset
Post by: jeanfabre on September 16, 2012, 07:26:45 AM
Hi,

 here we go,

http://hutonggames.com/playmakerforum/index.php?topic=2285.0 (http://hutonggames.com/playmakerforum/index.php?topic=2285.0)

bye,

 Jean