コード例 #1
0
    public static void SetGraphicRaycaster(GameObject target)
    {
        GraphicRaycaster graphicRaycaster = target.AddMissingComponent <GraphicRaycaster>();

        graphicRaycaster.set_enabled(true);
        graphicRaycaster.set_blockingObjects(0);
        graphicRaycaster.set_ignoreReversedGraphics(true);
    }