|
//FIXME: if we null config what should we do? |
Hi, was browsing code and came across this, can give you a tip here:
So there is two ways to get config YGConfig.New() and YGConfig.GetDefault(), the difference is, that Default is a global config, and it's attached to every node by default. So unless you do YGNode.SetConfig(....) node would already use a Default config... And if you do YGNode.SetConfig(configPtr) only this one node would use that config...
Hope it makes it somewhat clearer.
YogaSharp/Yoga/Node.cs
Line 91 in 0d47faa
Hi, was browsing code and came across this, can give you a tip here:
So there is two ways to get config
YGConfig.New()andYGConfig.GetDefault(), the difference is, thatDefaultis a global config, and it's attached to every node by default. So unless you doYGNode.SetConfig(....)node would already use aDefaultconfig... And if you doYGNode.SetConfig(configPtr)only this one node would use that config...Hope it makes it somewhat clearer.