December 2, 2020 update:
  • The Poly website (poly.google.com) and Poly API will be shut down on June 30, 2021. Uploading of new assets will be disabled two months earlier, on April 30, 2021.
  • Previously uploaded assets will remain available and can be downloaded from poly.google.com until June 30, 2021.

PolyToolkit.PtAsset

A Poly Toolkit asset (custom asset type).

Summary

This represents an asset imported from Poly.

Inheritance

Inherits from: ScriptableObject

Public attributes

assetPrefab
GameObject
A reference to the prefab that represents the object.
author = ""
string
Author of the asset.
license
The license under which this asset was included in the project.
title = ""
string
Title of the asset.
url = ""
string
URL to the asset.

Properties

FilterString
static string
Convenience method to return a filter string like "t:PtAsset" based on the name of this class (so that we are resilient to future renamings of this class).

Public attributes

assetPrefab

GameObject assetPrefab

A reference to the prefab that represents the object.

author

string author = ""

Author of the asset.

license

PolyAssetLicense license

The license under which this asset was included in the project.

title

string title = ""

Title of the asset.

url

string url = ""

URL to the asset.

Properties

FilterString

static string FilterString

Convenience method to return a filter string like "t:PtAsset" based on the name of this class (so that we are resilient to future renamings of this class).