Search Unity

Is it possible to bend sprites like this in Unity?

Discussion in '2D' started by Stef_Morojna, Jul 4, 2015.

  1. Stef_Morojna

    Stef_Morojna

    Joined:
    Apr 15, 2015
    Posts:
    289


    Is it possible to bend sprites like this inside Unity??
     
    Last edited: Jul 4, 2015
  2. MikeUpchat

    MikeUpchat

    Joined:
    Sep 24, 2010
    Posts:
    1,056
    I needed something like that a while back and asked an author of a 3d mesh deforming system if support could be added for deforming Sprites but it seems Unity has not made is possible to change a sprites vertices, there is an OverrideGeometry method where you should be able to update a sprites vertices but it seems that it only works if called during Import as seen in this post http://answers.unity3d.com/questions/946643/spriteoverridegeometry-doesnt-work.html Not sure if Unity has fixed this in a later update, maybe someone from Unity can answer but it would seem until that method is allowed to be called from normal scripts or Unity make some changes you cant change the vertices. You may be able to do something via a custom shader or use a simple plane mesh.
     
    Stef_Morojna likes this.
  3. PGJ

    PGJ

    Joined:
    Jan 21, 2014
    Posts:
    899
    Stef_Morojna likes this.
  4. Stef_Morojna

    Stef_Morojna

    Joined:
    Apr 15, 2015
    Posts:
    289