Auki::ConjureKit::Manna::MannaExtensions
Public Functions
Name | |
---|---|
FrameFeederGPU | GetOrCreateFrameFeederComponent(this Manna manna) This is a helper extension method, which does the following things for you: |
T | GetOrCreateFrameFeederComponent< T >(this Manna manna) This is a helper extension method, which does the following things for you: |
Public Functions Documentation
function GetOrCreateFrameFeederComponent
static FrameFeederGPU GetOrCreateFrameFeederComponent(
this Manna manna
)
This is a helper extension method, which does the following things for you:
Parameters:
- manna Your instance of Manna
Exceptions:
- InvalidOperationException Throws in case there is 0 or more than 1 ARCameraManager in the scene.
Return: The FrameFeeder component added (or already present) on the ARCameraManager GameObject
- finds the ARCameraManager in the scene and checks that at least one and only one is active
- gets or creates the suggested FrameFeeder component on the ARCameraManager object
- attaches the Manna instance to it You can use your own implementation or one of the provided ones, inheriting from FrameFeederBase.
function GetOrCreateFrameFeederComponent< T >
static T GetOrCreateFrameFeederComponent< T >(
this Manna manna
)
This is a helper extension method, which does the following things for you:
Parameters:
- manna Your instance of Manna
Exceptions:
- InvalidOperationException Throws in case there is 0 or more than 1 ARCameraManager in the scene.
Template Parameters:
- T The implementation of FrameFeeder to use, responsible to feed frames to Manna from ARFoundation
Return: The FrameFeeder component added (or already present) on the ARCameraManager GameObject
- finds the ARCameraManager in the scene and checks that at least one and only one is active
- gets or creates the suggested FrameFeeder component on the ARCameraManager object
- attaches the Manna instance to it You can use your own implementation or one of the provided ones, inheriting from FrameFeederBase.