Closed luzhuang closed 1 week ago
The changes in HierarchyParser.ts
enhance its functionality to handle a new resource type, GLTFResource
, in addition to the existing PrefabResource
. This allows for conditional instantiation of entities based on the resource type, ensuring more flexible and diversified handling of different resource types within the HierarchyParser
class.
Files | Change Summary |
---|---|
packages/loader/src/.../HierarchyParser.ts |
Imported GLTFResource , changed the type of parameter in then method, and updated instantiation logic to conditionally handle GLTFResource . |
In code so fair, with bytes so light,
A new resource comes into sight.
Prefabs meet their GLTF friends,
Together now, the code extends.
Parsing with joy, entities create,
For a future bright, we celebrate. 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
@coderabbitai review
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
Replenishment pr #2108
Summary by CodeRabbit
GLTFResource
type, allowing for broader compatibility and functionality when instantiating entities.