Advertisement
LatFoued

UE FileMediaSource Forward Declare issue

Jan 3rd, 2018
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Note for self or other: The FileMediaSource being forward declared in a struct was causing an error at build, a type error:
  2. "error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
  3. error C2146: syntax error: missing ';' before identifier 'UClass'
  4. error C2065: 'Z_Construct_UClass_UFileMediaSource_NoRegister': undeclared identifier"
  5.  
  6. To fix the issue it was needed to add a dependency to the plugin's (or project's) Build.cs.
  7. For the case of the FileMediaSource adding FileMediaSource or MediaAssets fixes the issue.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement