Home > Back-end >  How to Remove "Throw new System.NotImplementedException()" lane, when implement an interfa
How to Remove "Throw new System.NotImplementedException()" lane, when implement an interfa

Time:01-14

I use the Jet Brains Rider compiler and I want to remove the default lane related to implement. Because in some implementations, the number of methods is large and if they are not deleted, they give an error in Unity. If you know the address of this setting, please help.

public class CharacterA : MonoBehaviour, ICharacterController
{
    public void UpdateRotation(ref Quaternion currentRotation, float deltaTime)
    {
        throw new System.NotImplementedException(); // <=== remove this lane from default setting
    }
}

CodePudding user response:

The option that you are looking for is in Editor > Members Generation:

enter image description here

Use Return default value instead to solve your problem.

  • Related