C + + to Blueprint

Source: Internet
Author: User

Kismet Library

Blueprint Method CPP Use
Example: Playing Log:print String
Blueprint Node Mouse Tips:target is Kismet System Library

#include "Runtime/Engine/Classes/Kismet/KismetSystemLibrary.h"  UKismetSystemLibrary::PrintString(this, s)  //KismetSystemLibrary 继承UObject
C + + hit log
//.cpp文件声明LOG。注:LogName不能重,Log是个枚举,All是个枚举UE_LOG(LogName, Log, TEXT("abc %s"),s);//可以像Printf样打印出
//在.h文件声明LOGDEFINE_LOG_CATEGORY(AAAAA);//在.cpp文件使用
#include "Engine/Engine.h"GEngine->AddOnScreenDebugMessage(-15.f, FColor::Red, FString::Printf(TEXT("%s %f"), *Msg, Value));//引擎打LOG
Blueprint C + + intermodulation
"test")void SendMsg(FString msg);//蓝图输入函数"ReceiveEvent"))void ReceiveEvent(const FString& message);//蓝图接收函数"TAMediator")  //蓝图输出 绿色

C + + to Blueprint

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.