MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / ToJson

Method ToJson

Source/Engine/Level/Actor.cpp:2065–2074  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2063}
2064
2065String Actor::ToJson()
2066{
2067 PROFILE_CPU();
2068 rapidjson_flax::StringBuffer buffer;
2069 CompactJsonWriter writer(buffer);
2070 writer.SceneObject(this);
2071 String result;
2072 result.SetUTF8(buffer.GetString(), (int32)buffer.GetSize());
2073 return result;
2074}
2075
2076void Actor::FromJson(const StringAnsiView& json)
2077{

Callers 5

GetStateMethod · 0.80
GetStateMethod · 0.80
EditFoliageActionMethod · 0.80
RecordEndMethod · 0.80

Calls 4

SetUTF8Method · 0.80
SceneObjectMethod · 0.45
GetStringMethod · 0.45
GetSizeMethod · 0.45

Tested by

no test coverage detected