Announcement

Collapse
No announcement yet.

Bug in create new class c++

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

    Bug in create new class c++

    When you create for ex: MaterialInstanceActor class, 2 events missing:
    .h
    Code:
    virtual void PostLoad() override;
    virtual void PostEditChangeProperty(FPropertyChangedEvent & PropertyChangedEvent) override;
    .cpp
    Code:
    void ASky_material::PostLoad()
    {
    
    }
    
    void ASky_material::PostEditChangeProperty(FPropertyChangedEvent & PropertyChangedEvent) {
    
    }
    If these functions don't exist, this will happen:
    https://forums.unrealengine.com/show...ng-c-new-class

    Fix for all classes.
    Thanks!
Working...
X