8000 GitHub - Evianaive/BlueprintOutputReference: This plugin allow user to export variable as reference to blueprint in Cpp, which can not be done before, by mark some meta data
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

This plugin allow user to export variable as reference to blueprint in Cpp, which can not be done before, by mark some meta data

Notifications You must be signed in to change notification settings

Evianaive/BlueprintOutputReference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BlueprintOutputReference

This plugin allows the user to export variables as references to the blueprint in Cpp, which can not be done before, by marking some metadata

这个插件允许用户在C++中定义输出引用的蓝图函数,这在正常的蓝图中是做不到的

将这个actor拖到场景中点击test按钮。 drag the actor to the level and press the test button image

你可以看到屏幕上的打印结果。 You can see such print results on the screen image

蓝图会将函数的引用入参作为输出使用,但这样实际上输出的值而不是引用。如果需要输出引用,我们实际上要传入T*&。 blueprint function uses reference param as output but does not return value by reference unless we pass T*& into the function.

image

以下是可以被这个插件导出到蓝图的C++输出引用的函数实现的注意事项。 these are some rules you need to follow when writing a function that can be exported to a blueprint by this plugin

1.需要输出引用的参数需要标记meta=(Ptr="true"). marking meta=(Ptr="true") on params that need to export by reference

2.函数标记meta=(BlueprintPtr="true",BlueprintInternalUseOnly="true"),不需要标记Blueprintable. marking meta=(BlueprintPtr="true",BlueprintInternalUseOnly="true") on function. Blueprintable is not needed.

3.函数内将传入的参数的类型视为uint64*&来处理, process those params as uint64*&

函数在蓝图中使用的形式如下 The function looks like this in the blueprint image

About

This plugin allow user to export variable as reference to blueprint in Cpp, which can not be done before, by mark some meta data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0