FyroxEngine / Fyrox

3D and 2D game engine written in Rust
https://fyrox.rs
MIT License
7.64k stars 343 forks source link

Implement property inheritance via reflection #359

Closed mrDIMAS closed 2 years ago

mrDIMAS commented 2 years ago

This PR implements automatic property inheritance using reflection. Property inheritance is a mechanism that allows to inherit values of properties from prefabs (including nesting prefabs). It is very powerful and allows to create prefab instances and slightly modify them (changing position, some other properties, etc.) while having rest of the properties to be inherited, which allows you to change prefabs and these change will reflect in instances.

Key features of the PR:

toyboot4e commented 2 years ago

Cool!