Make SubRenderFeature.AttachRootRenderFeature public#3088
Make SubRenderFeature.AttachRootRenderFeature public#3088Redwarx008 wants to merge 1 commit intostride3d:masterfrom
Conversation
This comment was marked as off-topic.
This comment was marked as off-topic.
|
As far as I can tell, So I think it is If you are developing a |
Sometimes I want to be able to directly reuse SubRenderFeature under MeshRenderFeature instead of inheriting it first. |
|
Yes, I understand the convenience. But I think they were designed that way because they are (were) tightly coupled to the Making them public class MyLightingSubRenderFeature : ForwardLightingRenderFeature
{
internal /* or public */ void Attach(MyRenderFeature myParentRenderFeature)
{
// You can call it here because it is protected
base.AttachRootRenderFeature(myParentRenderFeature);
/* ... your custom logic */
}
} |
PR Details
allow custom render features outside the engine assembly to reuse internal
SubRenderFeatureattachment logicRelated Issue
Types of changes
Checklist