Tang Heng - View Finder Plugin

Video:

Bilibili:【UE5】模仿ViewFinder拍照玩法(插件和示例已发布Fab,详情看简介)_哔哩哔哩_bilibili

This plugin implements a photo-taking gameplay similar to the game View Finder.

It includes the following functions:

-- Determine whether the Actor is within the view frustum(based on SceneCaptureComponent2D)

-- Copy the Actor in scene at runtime(include components)

-- Cut the static\dynamic mesh using view frustum(based on Geometry Script)

*This plugin relies on the Geometry Script plugin. You need to enable it first.

All functions are encapsulated in

ViewFinderLibrary,

BP_ViewFinderComponent

It can be used with just simple Settings.

*A Demo map is provided in the Content folder of the plugin for learning.

*Noticed:All static meshes in level should set bAllowCPUAccess to true.

本插件实现了类似游戏View Finder的拍照玩法。

包含了以下功能:

--判断Actor是否在视锥体内(基于SceneCaptureComponent2D组件)

--运行时复制场景中的Actor(包括组件)

--使用视锥体切割网格体(基于Geometry Script

*插件依赖Geometry Script。你需要先启用它。

所有功能封装于

ViewFinderLibrary,

BP_ViewFinderComponent

只需要简单设置即可使用

*在插件的Content目录下提供了一张作为示例的地图

*Noticed:你需要设置场景中所有的StaticMesh的bAllowCPUAccess为true