ArticyRefModes Enumeration
These define the modes for an articy reference.
Definition
Namespace: Articy.Unity
Assembly: ArticyRuntime (in ArticyRuntime.dll) Version: 1.3.1
Assembly: ArticyRuntime (in ArticyRuntime.dll) Version: 1.3.1
C#
public enum ArticyRefModesRemarks
The ArticyRef keeps information about which object the user wants to retrieve when using the various GetObject methods. You can change the way the GetObject method retrieves the object from the database by setting the appropiate flag on the ArticyRef itself.
Members
| ReferenceBaseObject | 0 | This will only reference the base object from the database (the one with the instance id 0) and will also hide the instance id control from the inspector. |
| ReferenceByInstanceId | 1 | This will reference the object with the given instance id, if the object is not found with the instance id, the GetObject call will return null. |
| CloneWithConsecutiveInstanceId | 2 | This will reference the object and will clone it the first time the user calls GetObject, the instance id will be stored and any subsequent calls will behave like ReferenceByInstanceId |
| CloneOrGetWithInstanceId | 3 | This will reference the object and will try to clone it the first time the user calls GetObject and assigns the supplied instance id. |