Unity How To Use Editor Scripts, You can attach the Editor to a custom component by using the CustomEditor attribute.