Question by
TerrySantos · Feb 10, 2020 at 07:23 AM ·
canvaspluginandroidpluginview
How to draw android view on Unity canvas?
Hi as per question I want draw android view on Unity canvas(maybe rawImage)
in my project I already make Android Plugin with Unity and it works.
this is the android function.
public void PlayApplications(String pacName)
{
Log.d(this.getClass().getName(),"Youtuve on");
PackageManager pm = getPackageManager();
String packageName = pacName;
Intent intent = pm.getLaunchIntentForPackage(packageName);
Rect rect = new Rect(100,800,900,700);
ActivityOptions options = ActivityOptions.makeBasic();
ActivityOptions bounds = options.setLaunchBounds(rect);
startActivity(intent,bounds.toBundle());
}
Unity send android package name to android and that function launches applications as multi windows with rect size.
then I want to draw rect on Unity Canvas is there any tips or solutions?
Comment
Your answer
Follow this Question
Related Questions
Canvas without Camera? 2 Answers
Android Plugin Jar java.lang.ClassNotFoundException 0 Answers
Native Plugin to get Users phone number 0 Answers
Unity plug-in/ Support SDK or 3rd party plug-in to handle Huawei Dynamic ability SDK. 0 Answers
How to use App indexing Api's by extending a class with Prime31 's UnityPlayerActivity ? 0 Answers