edit: added code example in my last post above.
Search found 4 matches
- Tue Jan 30, 2018 2:13 pm
- Forum: General Discussion
- Topic: Texture rotation
- Replies: 8
- Views: 19510
Re: Texture rotation
oh and also add offset to anchor if you are using offset 
edit: added code example in my last post above.
edit: added code example in my last post above.
- Tue Jan 30, 2018 1:46 pm
- Forum: General Discussion
- Topic: Texture rotation
- Replies: 8
- Views: 19510
Re: Texture rotation
Just a quick note for anyone trying this. Adding tiling affects Anchor of Rotator so the anchor should be adjusted accordingly (ex. 0.5*tiling.x, 0.5*tiling.y, 0f, 0f). If you are using offsets, add offset to the anchor as well.
Example:
Vector4 newRotatorAnchor = new Vector4(
newTextureScale.x ...
Example:
Vector4 newRotatorAnchor = new Vector4(
newTextureScale.x ...
- Tue Jan 30, 2018 11:35 am
- Forum: General Discussion
- Topic: Texture rotation
- Replies: 8
- Views: 19510
Re: Texture rotation
That worked brilliantly!! Thanks for the quick reply (and the awesome asset!). 
- Tue Jan 30, 2018 9:28 am
- Forum: General Discussion
- Topic: Texture rotation
- Replies: 8
- Views: 19510
Re: Texture rotation
Thanks for the tip! I am trying to rotate a texture but at the same time keeping the tiling/offset because it is used as a grid for a plane. Is there a way to do this? The rotator passes in a UV and according to the documentation for Texture Sample , this overrides the texture tiling and offset ...