You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
- Brings over the necessary engine changes for embedding UE4 mobile as a dylib/so in native mobile app - Various changes for facial animation, screen recording, others - ARKit and ARCore plugins were removed, as deemed "not ready" #rb many people #ROBOMERGE-OWNER: ryan.vance #ROBOMERGE-AUTHOR: josh.adams #ROBOMERGE-SOURCE: CL 5201138 via CL 5203024 via CL 5226277 #ROBOMERGE-BOT: DEVVR (Main -> Dev-VR) [CL 5244512 by josh adams in Dev-VR branch]
37 lines
932 B
C++
37 lines
932 B
C++
// Copyright 1998-2018 Epic Games, Inc. All Rights Reserved.
|
|
|
|
#pragma once
|
|
|
|
#include "CoreMinimal.h"
|
|
#include "NativeJSScripting.h"
|
|
#include "Backends/JsonStructSerializerBackend.h"
|
|
|
|
class UObject;
|
|
|
|
/**
|
|
* Implements a writer for UStruct serialization using JavaScript.
|
|
*
|
|
* Based on FJsonStructSerializerBackend, it adds support for certain object types not representable in pure JSON
|
|
*
|
|
*/
|
|
class FNativeJSStructSerializerBackend
|
|
: public FJsonStructSerializerBackend
|
|
{
|
|
public:
|
|
|
|
/**
|
|
* Creates and initializes a new instance.
|
|
*
|
|
* @param InScripting An instance of a web browser scripting obnject.
|
|
*/
|
|
FNativeJSStructSerializerBackend(FNativeJSScriptingRef InScripting, FMemoryWriter& Writer);
|
|
|
|
public:
|
|
virtual void WriteProperty(const FStructSerializerState& State, int32 ArrayIndex = 0) override;
|
|
|
|
private:
|
|
void WriteUObject(const FStructSerializerState& State, UObject* Value);
|
|
|
|
FNativeJSScriptingRef Scripting;
|
|
};
|