Version: 2017.2
public static bool IsPackagedAsset (Object obj);
public static bool IsPackagedAsset (int instanceID);

Description

Returns true if the Asset is inside a package, and false if it is not.