Skip to content

invalid한 객체 update 문제 #6

@pshpjr

Description

@pshpjr

Describe the solution you'd like

  • 아이템 소멸 버그처럼 객체 Update 할 때 자식에서 만든 기능과 부모에서 만든 기능이 동시에 소멸을 원할 경우 두 번 삭제 요청함
  • 모든 객체의 OnUpdate에서 자기가 valid 한지 확인하는 건 실수할 여지가 너무 큼

Describe alternatives you've considered

  • 각 기능을 컴포넌트로 만들어서 부모에게 attach 하는 형태로 간다면 컴포넌트 리스트 순회하면서 매번 vaild 체크 해 줄 수 있음
  • destroyActor 함수에서 이중 삭제 막을 수 있지만, 삭제 외의 경우 막을 수 없음
    • 이미 죽은 객체가 뭔가 추가로 동작할 수 있고, 이로 인해 문제 가능성
  • Invalid한 객체를 Update 호출 안 하는 것 만으론 못 막음
    • 소멸 버그처럼 내부에서 삭제되는 경우 못 막음

Additional context
Add any other context or screenshots about the feature request here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions