I have never used caps in a topic name until now. Here’s why:
public bool isOpen;
[System.Serializable]
public enum DoorOpeningDirection { Inward, Outward}
public DoorOpeningDirection OpeningDirection;
public AnimationClip openingAnimation;
private Animator anim;
public override void DoInteract()
{
networkView.RPC("openDoor", RPCMode.AllBuffered);
}
void FixedUpdate()
{
anim = GetComponent<Animator>();
anim.SetBool("isOpen", isOpen);
}
[RPC]
void openDoor()
{
if (isOpen)
{
isOpen = false;
}
else
{
isOpen = true;
}
}
This is a script I have attached to a door. Everything animates, the rotation, the collider, everything moves the way it’s supposed to, except for the renderer. The door’s graphic stays completely still and will not move, but the box collider around the door moves exactly like you would expect it to. I tried it once with legacy animation and again with Mecanim. Both times I got exactly the same end result. I am literally at the end of the road and I’m sick of fighting this, because two people I’ve spoken to say everything is set up just fine and from the looks of it, it SHOULD WORK. This is a simple DOOR I’ve done so many times before, it’s stupid. But now Unity decides to crap on me and tell me it’s pretty much impossible?
What, if anything, am I doing wrong?