-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor component system #179
Conversation
… individual files add comments for relfection code add new components instance add postLoad for resource Fix wall object update object asset postLoad resource for component rename new_components to be components remove redunt logic in object refactor level asset: using instanced component for transform fix transform and rigidbody post loaded remove useless files
…1/PilotV into refactor-component-system
"asset/objects/character/player/components/animation/data/anim.skeleton_map.json" | ||
], | ||
"blend_clip_file_length": [ | ||
0.76666998863220215 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like saved from editor? the value changed due to rounding methods
"controller_config": { | ||
"$context": { | ||
"capsule_shape": { | ||
"half_height": 0.69999998807907104, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same rounding problem here
} | ||
} | ||
}, | ||
"$typeName": "TransformComponent" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the purpose of TransformComponent in object definition
- store components data in objects instead of individual files - remove useless component files - move component editor tick property into `g_editor_tick_component_types` - load components from instanced data firstly, then load from the definition - transform as the normal instanced component - add `postLoadResource` interface for component loading
g_editor_tick_component_types
postLoadResource
interface for component loading