Page 1 of 1

Roof hider problem

Posted: Wed Sep 23, 2015 2:57 pm
by terrymorgan
I'm trying to make 2 different buildings roofs disappear, made separate on off triggers for each building,

Sequence in 1
SetEnabled(MeshRenderer, true, farm_bldg_a_roof)

in the other
SetEnabled(MeshRenderer, true, farm_bldg_b_roof)

Building a goes on and off properly, but building b only has the roof disappear, on exit the roof doesn't reappear.
I'll make a small demo of this.

Re: Roof hider problem

Posted: Wed Sep 23, 2015 6:25 pm
by Tony Li
Hi Terry,

Is the exit sequence getting triggered for building b? (If you set Dialogue Manager > Debug Level to Info, it will show you.) If not, here some some things to check:
  • Trigger is set to OnTriggerEnter
  • There aren't any Conditions on the sequence trigger that prevent it from firing
  • Sequence references the right GameObject, doesn't have typos

Re: Roof hider problem

Posted: Thu Sep 24, 2015 11:22 am
by terrymorgan
I asked Hitbear about this, he said, put a collider tagged 'Wall' inside your roof, then the camera will zoom inside
anything tagged "Wall". It kind of works, still might need these trigger things for something else.