ObjectTargetParameters Class¶
This type is an EasyAR Sense API in C#: ObjectTargetParameters . Some descriptions may not apply to Unity environment on this page.
Some parts of the Sense API may have already been wrapped into Unity components, and directly usages may not be necessary.
Description¶
ObjectTargetParameters represents the parameters to create a ObjectTarget .
Methods¶
bufferDictionary¶
- C#
public virtual BufferDictionary bufferDictionary()
Gets Buffer dictionary.
setBufferDictionary¶
- C#
public virtual void setBufferDictionary( BufferDictionary bufferDictionary)
Sets Buffer dictionary. obj, mtl and jpg/png files shall be loaded into the dictionay, and be able to be located by relative or absolute paths.
objPath¶
- C#
public virtual string objPath()
Gets obj file path.
setObjPath¶
- C#
public virtual void setObjPath(string objPath)
Sets obj file path.
name¶
- C#
public virtual string name()
Gets target name. It can be used to distinguish targets.
setName¶
- C#
public virtual void setName(string name)
Sets target name.
uid¶
- C#
public virtual string uid()
Gets the target uid. You can set this uid in the json config as a method to distinguish from targets.
setUid¶
- C#
public virtual void setUid(string uid)
Sets target uid.
meta¶
- C#
public virtual string meta()
Gets meta data.
setMeta¶
- C#
public virtual void setMeta(string meta)
Sets meta data。
scale¶
- C#
public virtual float scale()
Gets the scale of model. The value is the physical scale divided by model coordinate system scale. The default value is 1. (Supposing the unit of model coordinate system is 1 meter.)
setScale¶
- C#
public virtual void setScale(float size)
Sets the scale of model. The value is the physical scale divided by model coordinate system scale. The default value is 1. (Supposing the unit of model coordinate system is 1 meter.)
It is needed to set the model scale in rendering engine separately.