docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Method ShouldDrawHoverMesh

    ShouldDrawHoverMesh(MeshFilter, Renderer, Camera)

    Unity calls this method automatically in order to determine whether the mesh should be drawn.

    Declaration
    protected virtual bool ShouldDrawHoverMesh(MeshFilter meshFilter, Renderer meshRenderer, Camera mainCamera)
    Parameters
    Type Name Description
    MeshFilter meshFilter

    The MeshFilter which will be drawn when returning true.

    Renderer meshRenderer

    The Renderer on the same GameObject as the meshFilter.

    Camera mainCamera

    The Main Camera.

    Returns
    Type Description
    bool

    Returns true if the mesh should be drawn. Otherwise, returns false.

    See Also
    DrawHoveredInteractables()
    In This Article
    Back to top
    Copyright © 2023 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)