Search Unity

Get objects only visible to ScrollRect Viewport

Discussion in 'Editor & General Support' started by jmansa, Feb 14, 2017.

  1. jmansa

    jmansa

    Joined:
    Apr 13, 2012
    Posts:
    75
    Hi,

    I am trying to access only the game objects which are in fact visible in the scrollrects viewport. Can this be done?

    I have a ScrollView Like this:

    FriendsList
    - Grid
    -- Object1
    -- Object2
    -- Object3
    -- Object4
    -- Object5
    -- Object6
    -- Object7


    My ViewPort is: FriendsList

    If, lets say, object2 - object5 is visible, i would like to be able to put those inside a List <GameObject> vObjects.

    Hope this makes sense and thanks in advance :)
     
  2. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    same..any?