jwindgassen / unrealyaml Goto Github PK
View Code? Open in Web Editor NEWA UnrealEngine-Wrapper for the yaml-cpp Library
License: Other
A UnrealEngine-Wrapper for the yaml-cpp Library
License: Other
Can I read from an YAML file that contains multiple nested structs with arrays?
I tried to load YAML from file and only the root Image is loaded, but the Clothes array is not. Is this a limitation of the plugin or I just did some error in my loader/processing?
Example below, can I read this into a Cloth struct that has an array of ClothDetails?
Image: Clothes.png
Clothes:
- Cloth:
Type: Hat
Image: hat.png
- Cloth:
Type: Shoes
Image: shoes.png
- Cloth:
Type: Pants
Image: pants.png
- Cloth:
Type: Gloves
Image: gloves.png
I had my structs as:
USTRUCT(BlueprintType)
struct MYPROJECT_API FClothDetailsStruct {
GENERATED_BODY()
UPROPERTY(BlueprintReadWrite)
FString ClothType;
UPROPERTY(BlueprintReadWrite)
FString Image;
};
USTRUCT(BlueprintType)
struct MYPROJECT_API FClothStruct {
GENERATED_BODY()
UPROPERTY(BlueprintReadWrite)
FString Image;
UPROPERTY(BlueprintReadWrite)
TArray<FClothDetailsStruct> Clothes;
};
Can you give a test project in Unreal or a short test code, which will be very helpful for beginners.
Thank you very much for your contribution.
del
blic\Node.h(182): error C4530: C++ exception handler used, but unwind semantics are not enabled. Specify /EHsc
UATHelper: Packaging (Windows (64-bit)): [19/21]
Currently if you want to have access to the keys while iterating, you can't use ranged-based for loops, but because there is no const iterator (like yaml-cpp), you end up having to copy the node. Example:
auto next = node["next"];
for(auto it = next.begin(); it != next.end(); ++it)
{
auto key = it.Key().As<FString>();
// ...
}
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.