Hi, I want to add some variables in UAnimInstance. I decide to create a UMonsterAnimInstance class to implement it.
I would like let UMonsterAnimInstance reusable, so I tried to make a plugin. (follow by the sample “UObjectPlugin”).
When I build it, then got error : error C2504: ‘UAnimInstance’: base class undefined
Here is code in MonsterAnimInsttance.h:
#pragma once
#include "MonsterAnimInstance.generated.h"
/**
* Example of declaring a UObject in a plugin module
*/
UCLASS(transient, Blueprintable, hideCategories = AnimInstance, BlueprintType)
class UMonsterAnimInstance : public UAnimInstance
{
GENERATED_UCLASS_BODY()
public:
UPROPERTY()
bool IsIdle;
private:
};
I tried to include “UAnimInstance.h”. Got another error : fatal error C1083: Cannot open include file: ‘AnimInstance.h’: No such file or directory
Is something wrong in my plugin code?