Search Unity

How to raycast a single collider?

Discussion in 'Scripting' started by liroke, Sep 5, 2011.

  1. liroke

    liroke

    Joined:
    Apr 29, 2009
    Posts:
    39
    I want to raycast single collider and don't want to set all other colliders layer to ignore raycast.
    How to do this?THK for reply...
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
  3. liroke

    liroke

    Joined:
    Apr 29, 2009
    Posts:
    39
    OH yes! I'm not find this descript.It's very useful for me.Thanks.
    And I was download your Shader Editor,It's a nice work....