Class AssetInfo

AssetInfo class

Information of asset. Asset information can be attached to a Scene. Child Scene can have its own AssetInfo to override parent’s definition.

public class AssetInfo : A3DObject

Constructors

NameDescription
AssetInfo()Initializes a new instance of the AssetInfo class.
AssetInfo(string)Initializes a new instance of the AssetInfo class.

Properties

NameDescription
Ambient { get; set; }Gets or Sets the default ambient color of this asset
ApplicationName { get; set; }Gets or sets the application that created this asset
ApplicationVendor { get; set; }Gets or sets the application vendor’s name
ApplicationVersion { get; set; }Gets or sets the version of the application that created this asset.
Author { get; set; }Gets or sets the author of this asset
AxisSystem { get; set; }Gets or sets the coordinate system/up vector/front vector of the asset info.
Comment { get; set; }Gets or sets the comment of this asset.
CoordinateSystem { get; set; }Gets or sets the coordinate system used in this asset.
Copyright { get; set; }Gets or sets the document’s copyright
CreationTime { get; set; }Gets or Sets the creation time of this asset
FrontVector { get; set; }Gets or sets the front-vector used in this asset.
Keywords { get; set; }Gets or sets the keywords of this asset
ModificationTime { get; set; }Gets or Sets the modification time of this asset
virtual Name { get; set; }Gets or sets the name.(Inherited from A3DObject.)
Properties { get; }Gets the collection of all properties.(Inherited from A3DObject.)
Revision { get; set; }Gets or sets the revision number of this asset, usually used in version control system.
Subject { get; set; }Gets or sets the subject of this asset
Title { get; set; }Gets or sets the title of this asset
UnitName { get; set; }Gets or sets the unit of length used in this asset. e.g. cm/m/km/inch/feet
UnitScaleFactor { get; set; }Gets or sets the scale factor to real-world meter.
UpVector { get; set; }Gets or sets the up-vector used in this asset.
Url { get; set; }Gets or Sets the URL of this asset.

Methods

NameDescription
FindProperty(string)Finds the property. It can be a dynamic property (Created by CreateDynamicProperty/SetProperty) or native property(Identified by its name)(Inherited from A3DObject.)
GetProperty(string)Get the value of specified property(Inherited from A3DObject.)
RemoveProperty(Property)Removes a dynamic property.(Inherited from A3DObject.)
RemoveProperty(string)Remove the specified property identified by name(Inherited from A3DObject.)
SetProperty(string, object)Sets the value of specified property(Inherited from A3DObject.)

Examples

The following code shows how to read asset info from a fbx file:

Scene scene = Scene.FromFile("test.fbx");
Console.WriteLine($"The file is created at {scene.AssetInfo.CreationTime} by {scene.AssetInfo.ApplicationName} {scene.AssetInfo.ApplicationVersion} ");

See Also