Version: 
  • C# API

    Show / Hide Table of Contents
    • PiXYZ
      • CoreLoadingException
      • NoValidLicenseException
      • OutOfTermsException
      • PiXYZDefinesManager
      • PiXYZException
    • PiXYZ.Config
      • Compatibility
      • Configuration
      • LicenseServer
      • Token
      • WebLicense
    • PiXYZ.Editor
      • AboutWindow
      • ColoredTheme
      • ColorType
      • DispatcherEditor
      • EditorExtensions
      • EditorGUIExtensions
      • IProgressBar
      • LicensingWindow
      • NonPersistentSerializer
      • PrefabDependenciesDestination
      • Preferences
      • ProgressBar
      • ScriptedImporterBehaviour
      • SingletonEditorWindow
      • StaticStyles
      • TextureCache
      • UpdateWindow
    • PiXYZ.Import
      • ExceptionHandler
      • Formats
      • Importer
      • ImportSettings
      • ImportSettingsTemplate
      • ImportStamp
      • LodGenerationSettings
      • LodGroupPlacement
      • LodQuality
      • LodsGenerationSettings
      • Metadata
      • Parameter<T>
      • ParameterAvailability
      • SubProcess
      • TransformVariant
      • VariantSets
      • VariantSets.MaterialSet
      • VariantSets.Set
      • VariantSets.Set<T, U>
      • VariantSets.TransformSet
      • VariantSets.VariantGroup
      • VariantSets.VariantSet
      • VariantSets.VariantStructure
      • VariantsManager
      • VariantsManager.MaterialSwitch
      • VariantsManager.Switch
      • VariantsManager.Switch<T>
      • VariantsManager.TransformSwitch
    • PiXYZ.Import.Editor
      • DropInSceneImporter
      • ImportSettingsEditor
      • ImportStampEditor
      • ImportWindow
      • LODsSettingsDrawer
      • MetadataEditor
      • PostProcessor
      • PostprocessVRED
      • PreprocessVRED
      • ScriptedImporter
      • ScriptedImporterAttribute
      • ScriptedImporterEditor
    • PiXYZ.Tools
      • ActionBase
      • ActionIn<Input>
      • ActionInOut<Input, Output>
      • ActionOut<Output>
      • FieldInstance
      • FieldInstanceSerializer
      • FilterParameter
      • FreePassAction
      • HelperMethod
      • IRenamable
      • PrefabModificationException
      • Rule
      • RuleBlock
      • RuleSet
      • ToolboxMenuItems
      • ToolsBase
      • UserParameter
    • PiXYZ.Tools.Builtin
      • AddChild
      • AddChild.Placement
      • AddCollider
      • AddCollider.ColliderType
      • AddLight
      • AddRigidbody
      • CreateLightmapUVs
      • CreateNormals
      • CreateUVs
      • Decimate
      • Decimate.DecimationCriterion
      • Decimate.DecimationQuality
      • Delete
      • ExplodeSubmeshes
      • FilterOnLayer
      • FilterOnMaterial
      • FilterOnMaterial.StringConstrain
      • FilterOnMetadata
      • FilterOnMetadata.PropName
      • FilterOnMetadata.PropName.PropertyNameConstrain
      • FilterOnMetadata.PropValue
      • FilterOnMetadata.PropValue.PropertyValueConstrain
      • FilterOnName
      • FilterOnName.StringConstrain
      • FilterOnPosition
      • FilterOnPosition.BoundsCondition
      • FilterOnTag
      • FlipNormals
      • GetAllGameObjects
      • GetChildAt
      • GetChildren
      • GetGameObject
      • GetImportedModel
      • GetLatestImportedModel
      • GetSelectedGameObjects
      • Merge
      • MoveOrigin
      • MoveOrigin.MovePivotOption
      • PrintGameObjectsInfo
      • PrintMaterialsInfo
      • PrintMeshesInfo
      • RandomizeTransform
      • RemoveHidden
      • RemoveHidden.SelectionLevelUnity
      • RepairMesh
      • ReplaceBy
      • ReplaceBy.ReplaceByMode
      • Retopologize
      • Retopologize.MeshReconstructionQuality
      • Retopologize.RetopologyMode
      • SetAsStatic
      • SetEnabled
      • SetLayer
      • SetMaterial
      • SetMesh
      • SetMetadata
      • SetName
      • SetPosition
      • SetPosition.Referential
      • SetTag
      • SwitchMaterials
      • SwitchMaterials.CopyReplace
      • SwitchMaterials.MaterialRemplacement
      • TextureQuality
    • PiXYZ.Tools.Editor
      • CoreContext
      • FieldInstanceDrawer
      • RenamePopup
      • RuleEngineMenu
      • RuleSetEditor
      • RuleSetWindow
      • Toolbox
      • ToolboxWindow
      • ToolsEditor
    • PiXYZ.Utils
      • BaseExtensions
      • CollectionExtensions
      • Dispatcher
      • Dispatcher.DelayedAction
      • Dispatcher.DelayFramesDispatch
      • Dispatcher.GoMainThreadDispatch
      • Dispatcher.GoThreadPoolDispatch
      • Dispatcher.SleepForSecondsDispatch
      • Dispatcher.WaitForSecondsDispatch
      • Dispatcher.YieldInstruction
      • DynamicEnum
      • FilePath
      • FloatingMesh
      • GameObjectToVoidHandler
      • GenericRenderer
      • LookupTable<K, V>
      • MergingContainer
      • MeshExtensions
      • Profiler
      • Profiling
      • ProgressHandler
      • Range
      • ReflectionExtensions
      • SceneExtensions
      • StringToStringHandler
      • TextureScaler
      • ThreadQueue
      • TypePathToUnityObject
      • UnityObjectToStringHandler
      • UnityObjectToUnityObjectHandler
      • VerticesData
      • VoidHandler

    Class Metadata

    When attached to a GameObject (as a Component), the Metadata will store and display all metadata properties.
    Those properties can be automatically imported from the Importer (with the correct settings).

    Inheritance
    System.Object
    Metadata
    Namespace: PiXYZ.Import
    Assembly: cs.temp.dll.dll
    Syntax
    public sealed class Metadata : MonoBehaviour
    Examples
    Metadata metadata = gameObject.GetComponent<Metadata>()
    string partNumber = metadata.getProperty("Part Number");

    Fields

    type

    Declaration
    public string type
    Field Value
    Type Description
    System.String

    Properties

    isInstance

    Declaration
    public bool isInstance { get; }
    Property Value
    Type Description
    System.Boolean

    Methods

    addOrSetProperty(String, String)

    Adds or set an existing property value. This is case sensitive.

    Declaration
    public void addOrSetProperty(string propertyName, string propertyValue)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property to look for

    System.String propertyValue

    Value of the property to add or set

    containsProperty(String)

    Returns true if the metadata contains a property with the given name. This is case sensitive.

    Declaration
    public bool containsProperty(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property to look for

    Returns
    Type Description
    System.Boolean

    True if the property exists

    getProperties()

    Returns the properties as a Dictionary.

    Declaration
    public Dictionary<string, string> getProperties()
    Returns
    Type Description
    System.Collections.Generic.Dictionary<System.String, System.String>

    A Dictionary with all properties

    getPropertiesNative()

    Returns native properties

    Declaration
    public NativeInterface.Properties getPropertiesNative()
    Returns
    Type Description
    PiXYZ.Plugin4Unity.NativeInterface.Properties

    Native properties

    getProperty(String)

    Returns a property value from its name. This will produce an exception if no property exists with the given name. This is case sensitive.

    Declaration
    public string getProperty(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property to look for

    Returns
    Type Description
    System.String

    The property value (string)

    removeProperty(String)

    Removes a property. Returns true if the operation was successful. This is case sensitive.

    Declaration
    public bool removeProperty(string propertyName)
    Parameters
    Type Name Description
    System.String propertyName

    Name of the property to look for

    Returns
    Type Description
    System.Boolean

    True if the property was removed. False if the property doesn't exists.

    setProperties(NativeInterface.Properties)

    Sets the properties from Native Interface.

    Declaration
    public void setProperties(NativeInterface.Properties properties)
    Parameters
    Type Name Description
    PiXYZ.Plugin4Unity.NativeInterface.Properties properties

    Native properties

    Back to top PiXYZ Plugin for Unity 2019.1