Defining a skeletal mesh component in code and attaching it to the root component will not allow the component's details to be editable inside the editor.
1. Open UE4Editor (any project)
2. Add code to project based on actor (MyActor)
3. In the header file add the following:
UPROPERTY() USkeletalMeshComponent* Skeletal_Mesh;
4. In the source file add the following to the constructor:
Skeletal_Mesh = CreateDefaultSubobject<USkeletalMeshComponent>(TEXT("Skeletal_Mesh"));
Skeletal_Mesh->AttachTo(RootComponent).
5. Compile and create a blueprint basted MyActor
Results:
When the blueprint is placed in the level and the skeletal mesh component is selected the details panel is entirely gray'ed out. When the blueprint is opened the details panel is completely blank.
Why does the REMOVE method of map container remove elements have memory leaks?
How to delete some elements correctly when deleting an array loop?
How does TextureRenderTarget2D get TArray<uint8> type data?
What is the cause of the packaging error falling back to 'GameUserSettings' in ue5?
An Unreal process has crashed: UE-4-Panzer Corps2
Head over to the existing Questions & Answers thread and let us know what's up.
0 |
Component | UE - Gameplay - Blueprint |
---|---|
Affects Versions | 4.7.5, 4.8 |
Created | Apr 16, 2015 |
---|---|
Resolved | Apr 18, 2015 |
Updated | Jul 14, 2021 |