Search Unity

  1. Unity 2019.2 is now released.
    Dismiss Notice

ProBuilder ProBuilder Trigger Mesh Bug

Discussion in 'World Building' started by vpinto, Feb 14, 2019.

  1. vpinto

    vpinto

    Joined:
    Apr 6, 2013
    Posts:
    11
    Every-time I re-load a scene, the material for any pro-builder trigger material appears... the mesh renderer is not turned off. This does not occur when I start the scene, only after re-loading a scene. Here is the script I use to do so...

    Code (CSharp):
    1. public class DeathBox : MonoBehaviour {
    2.  
    3.     public string levelName;
    4.     private void OnTriggerEnter (Collider other)
    5.     {
    6.         if (other.gameObject.tag == "Player")
    7.         {
    8.             SceneManager.LoadScene(levelName, LoadSceneMode.Single);
    9.             Debug.Log("Box Hit");
    10.         }
    11.     }
    12. }
    13.  

    the trigger object does in fact have the pb_TriggerBehaviour script attached... it just only seems to work once..

    any help would be appreciated!
     
  2. gabrielw_unity

    gabrielw_unity

    Unity Technologies

    Joined:
    Feb 19, 2018
    Posts:
    653
    Hi there! Sorry, this is a known issue that we will address in the next update. Thanks for the note!
     
  3. vpinto

    vpinto

    Joined:
    Apr 6, 2013
    Posts:
    11
    probuilder update? or unity update? I am teaching a unity class and at least for this term, we are stuck with 2018.2

    is there any workaround?
    can i just write my own script that disables the mesh renderer for their triggers? or is that going to yield the same result?

    thank you for getting back to me! really appreciate it, and love the tool in both using and teaching!
     
  4. Gua

    Gua

    Joined:
    Oct 29, 2012
    Posts:
    339
    I have same issue. Did anyone managed to find workaround?