use of com.talosvfx.talos.editor.addons.scene.utils.FilePropertyProvider in project talos by rockbite.
the class PrefabMetadata method getPropertyProviders.
@Override
public Iterable<IPropertyProvider> getPropertyProviders() {
Array<IPropertyProvider> propertyProviders = new Array<>();
propertyProviders.add(new FilePropertyProvider(currentFile));
Prefab prefab = new Prefab();
prefab.path = currentFile.path();
prefab.loadFromPath();
GameObject root = prefab.root;
Iterable<IPropertyProvider> rootProviders = root.getPropertyProviders();
for (IPropertyProvider provider : rootProviders) {
propertyProviders.add(provider);
}
return propertyProviders;
}
Aggregations