|
ArticyXImporter
ArticyXImporter for Unreal Engine
|
When you export your data from articy:draft X into your Unreal project, the ArticyXImporter plugin populates a database with your data. This section will cover how to access and interact with that data in Unreal Engine using both C++ and Blueprint.
The most basic way to access an Articy object is by querying it directly from the ArticyDatabase using its Id or Technical Name.
Example: Retrieving an object by its technical name:
The GetObjectByName method returns a UArticyObject, which is the base class for all Articy objects. You can cast this object to a more specific type to access its properties.
Example: Retrieving an object and casting it to its proper type:
In this case, the object is automatically cast to UManiacManfredCharacter, giving you access to all properties and methods specific to that class.
1) Retrieve the Articy object:
2) Modify or access properties:
Each Articy object has a unique ArticyId, which can be used to retrieve it directly. You can access objects by their ID in either hexadecimal or decimal formats.
Example: Retrieving an object by its ID:
You can also retrieve objects using their decimal equivalent:
1) Retrieve the Articy object by ID:
It is possible to assign the same Technical Name to multiple objects, although it is not recommended. If you have multiple objects with the same name, you can retrieve them all at once.
Example: Retrieving multiple objects with the same technical name:
While assigning the same technical name to multiple objects can lead to errors, it's better to group objects by their type and query them accordingly.
1) Retrieve multiple objects:
For more advanced handling, you can retrieve all objects of a specific type using the GetObjectsOfClass method.
Example: Retrieving all objects of a specific type:
Once you have all the objects, you can apply further filtering conditions, such as finding specific objects based on their properties.
1) Retrieve objects by type:
2) Filtering objects:
Whether using C++ or Blueprint, ArticyXImporter provides flexible ways to access Articy objects in Unreal. You can query objects by Technical Name, ArticyId, or Type and modify their properties directly in Unreal Engine.
For more advanced techniques and best practices, explore the [Object Handling with ArticyRef](Object-Handling-with-ArticyRef) section.