for some unknown reason you can get cast two sided shadow but you cannot set it.
i’m using blueprint to create multiple static mesh components and i need to tell them to cast two sided shadow (without making my materials two sided!)
is there anyway to do it ?
Hey there @m-motion! Welcome back to the community! When taking a look at the variable I do see that it’s getter is public but there’s no available setter, at least not exposed to blueprints. This might be due to changing this and calling to change the render state may not work. Or this could have accidentally been left unexposed, but since it’s one of the only ones in the list with no set function, it’s likely intentional. If you’re working from source you could add a function to mimic the other shadow cast settings setters.
The only reference to the variable in SM or Primitive:
/** Whether this primitive should cast dynamic shadows as if it were a two sided material. */
UPROPERTY(EditAnywhere, AdvancedDisplay, BlueprintReadOnly, Category=Lighting, meta=(EditCondition="CastShadow", DisplayName = "Shadow Two Sided"))
uint8 bCastShadowAsTwoSided:1;
sadly i’m not using source at the moment, but thank you so much for the help.
3 Likes
Thank You!!! that was a great help.