Class ImportStamp
This component holds all information related to the PiXYZ import.
Inheritance
Namespace: PiXYZ.Import
Assembly: cs.temp.dll.dll
Syntax
public sealed class ImportStamp : MonoBehaviour
Fields
wasUserWarned
True if the user was warned that the file was out of sync.
Declaration
public bool wasUserWarned
Field Value
Type | Description |
---|---|
System.Boolean |
Properties
fullPath
The absolute path to the source file. This is different from the path when the path is relative to the Project directory.
Declaration
public string fullPath { get; }
Property Value
Type | Description |
---|---|
System.String |
importDuration
The duration (in ticks) it took to import that file.
Declaration
public long importDuration { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
importSettings
The @link PiXYZ.ImportSettings @endlink used to import that file.
Declaration
public ImportSettings importSettings { get; set; }
Property Value
Type | Description |
---|---|
ImportSettings |
importTime
The time (in ticks) when the file was imported.
Declaration
public long importTime { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
lastFileSize
The size of the file (in bytes) the last time it was imported / synchronized.
Declaration
public long lastFileSize { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
lastWriteTime
The last write time (in ticks) of that file.
Declaration
public long lastWriteTime { get; }
Property Value
Type | Description |
---|---|
System.Int64 |
path
The path to the source file.
Declaration
public string path { get; set; }
Property Value
Type | Description |
---|---|
System.String |
rules
The @link PiXYZ.Tools.RuleSet @endlink used to import that file. This object is an editor-only feature, hence, type needs casting for use in Editor.
Declaration
public UnityEngine.Object rules { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Object |
Methods
changeLODMode(LodGroupPlacement)
Change LOD Mode Root mode : regroup all LODGroup of the hierarchy in one LODGroup (added to the gameObject of the importStamp). Leaves mode : Split the LODGroup of the importStamp gameObject and share it on the LODGroups created on the parent of the leaves of the hierarchy.
Declaration
public void changeLODMode(LodGroupPlacement mode)
Parameters
Type | Name | Description |
---|---|---|
LodGroupPlacement | mode |
markOutOfDate()
Declaration
public void markOutOfDate()
stamp(String, Int64)
Updates the import information.
Declaration
public void stamp(string filePath, long importDuration)
Parameters
Type | Name | Description |
---|---|---|
System.String | filePath | |
System.Int64 | importDuration |