Version: 
PiXYZ Plugin for Unity
Scripting API Documentation
ImportedModel

Inherits MonoBehaviour.

Public Member Functions

void stamp (string filePath, long importDuration)
 

Public Attributes

long importTime => _importTime
 
long importDuration => _importDuration
 
long lastWriteTime => _lastWriteTime
 
long lastFileSize => _lastFileSize
 
bool wasUserWarned
 

Properties

string path [get, set]
 
string fullPath [get]
 
ImportSettings importSettings [get, set]
 
UnityEngine.Object rules [get, set]
 
bool isLiveSyncEnabled [get, set]
 
LiveSyncStatus status [get]
 

Detailed Description

Member Function Documentation

◆ stamp()

void stamp ( string  filePath,
long  importDuration 
)

Updates the import information.

Parameters
filePath
importDuration

Member Data Documentation

◆ importDuration

long importDuration => _importDuration

The duration (in ticks) it took to import that file.

◆ importTime

long importTime => _importTime

The time (in ticks) when the file was imported.

◆ lastFileSize

long lastFileSize => _lastFileSize

The size of the file (in bytes) the last time it was imported / synchronized.

◆ lastWriteTime

long lastWriteTime => _lastWriteTime

The last write time (in ticks) of that file.

◆ wasUserWarned

bool wasUserWarned

True if the user was warned that the file was out of sync.

Property Documentation

◆ fullPath

string fullPath
get

The absolute path to the source file.

This is different from the path when the path is relative to the Project directory.

◆ importSettings

ImportSettings importSettings
getset

The PiXYZ.Plugin.Unity.ImportSettings used to import that file.

◆ isLiveSyncEnabled

bool isLiveSyncEnabled
getset

Returns true if the Live Sync is enabled.

◆ path

string path
getset

The path to the source file.

◆ rules

UnityEngine.Object rules
getset

The PiXYZ.Plugin.Unity.Tools.RuleSet used to import that file.

This object is an editor-only feature, hence, type needs casting for use in Editor.

◆ status

LiveSyncStatus status
get

The current status of the Live Sync for that file.