Search Unity

uGUI - ICanvasElement

Discussion in 'UGUI & TextMesh Pro' started by suresh.c.bitrhymes, Jan 14, 2016.

  1. suresh.c.bitrhymes

    suresh.c.bitrhymes

    Joined:
    Dec 16, 2015
    Posts:
    1
    Can anyone explain how and when ICanvasElement callbacks will be called? I have a class that implements ICanvasElement but none of the function get called after canvas rebuild. Or Is there a way to find the LayoutRebuild completion?


    All helps are highly appreciated!!!
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    What kind of callbacks did you implement ?
     
  3. studentutu

    studentutu

    Joined:
    Oct 22, 2017
    Posts:
    121
    CanvasUpdateRegistry.RegisterCanvasElementForGraphicRebuild(this);
    CanvasUpdateRegistry.RegisterCanvasElementForLayoutRebuild(this);