googlearchive / poly-toolkit-unity

Poly Toolkit for Unity
Apache License 2.0
101 stars 29 forks source link

Extract Asset info and save in Unity #26

Open abhi3675 opened 5 years ago

abhi3675 commented 5 years ago

I am using Poly-toolkit for Unity in my project and I came across a scenario where I want to save the GameObject(got from PolyImportResult) to Unity. So, I performed several methods: 1) Directly saving the gameobject into Prefabs. It saves the gameobject, but I am unable to see it in my scene as it does not have any materials, shaders or other important properties which make it visible. 2)Enabling the clientThrottledMainThread property during import returns the mainThreadThrottler which has materials, textures and other properties but I am unable to iterate through the collection due to its type.

Is there any way to save the GameObject in unity or can iterate through the mainThreadThrottler to get the required components. If so, please provide the way?