- Home /
Question by
vuwij · Nov 02, 2016 at 12:18 PM ·
collider2dinheritanceaddcomponentunityengine.object
AddComponent asking for type which is not a Unity engine type.
I'm inheriting from Collider2D, but when I try to AddComponent it gives me this warning.
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using UnityEngine.Internal;
namespace UnityEngine
{
[AddComponentMenu("Physics 2D/Ellipse Collider 2D")]
public sealed class EllipseCollider2D : Collider2D {}
}
Comment