|
NoJobEngine 2.0.7
|
#include <PrefabSerializer.h>
Static Public Member Functions | |
| static bool | Save (Entity root, const std::filesystem::path &) |
| static Entity | Instantiate (Scene &, const std::filesystem::path &, const std::shared_ptr< Mesh > &, const std::shared_ptr< Material > &) |
| static bool | Apply (Entity instance, const std::filesystem::path &) |
| static Entity | Revert (Entity instance, const std::shared_ptr< Mesh > &fallback, const std::shared_ptr< Material > &base) |
Definition at line 12 of file PrefabSerializer.h.
|
static |
Definition at line 279 of file PrefabSerializer.cpp.
References Save().
|
static |
Definition at line 134 of file PrefabSerializer.cpp.
References NoJob::Entity::AddComponent(), NoJob::AnimatorComponent::Animation, NoJob::ParticleSystemComponent::BlendMode, NoJob::Bool, NoJob::ScriptFieldValue::Bool, NoJob::AnimatorComponent::ClipIndex, NoJob::AudioSourceComponent::ClipPath, NoJob::ParticleSystemComponent::ConeAngle, NoJob::Scene::CreateEntity(), NoJob::ParticleSystemComponent::Direction, NoJob::AudioSourceComponent::DopplerFactor, NoJob::ParticleSystemComponent::Duration, NoJob::ParticleSystemComponent::EmissionRate, NoJob::AudioListenerComponent::Enabled, NoJob::NativeScriptComponent::Enabled, NoJob::ParticleSystemComponent::EndColor, NoJob::ParticleSystemComponent::EndSizeMultiplier, NoJob::NativeScriptComponent::Fields, NoJob::Float, NoJob::ScriptFieldValue::Float, NoJob::Entity::GetComponent(), NoJob::ParticleSystemComponent::Gravity, NoJob::Int, NoJob::ScriptFieldValue::Int, NoJob::ParticleSystemComponent::LifetimeRandom, NoJob::AnimationAsset::Load(), NoJob::AssetManager::LoadMesh(), NoJob::AnimatorComponent::Loop, NoJob::AudioSourceComponent::Loop, NoJob::ParticleSystemComponent::Loop, NoJob::AudioSourceComponent::MaxDistance, NoJob::ParticleSystemComponent::MaxParticles, NoJob::AudioSourceComponent::MinDistance, NoJob::AudioSourceComponent::Pitch, NoJob::AnimatorComponent::Playing, NoJob::ParticleSystemComponent::Playing, NoJob::AudioSourceComponent::PlayOnAwake, NoJob::TransformComponent::Position, NoJob::AssetManager::ResolveProjectPath(), NoJob::NativeScriptComponent::ScriptName, NoJob::Scene::SetParent(), NoJob::ParticleSystemComponent::Shape, NoJob::ParticleSystemComponent::ShapeRadius, NoJob::ParticleSystemComponent::SizeRandom, NoJob::AudioSourceComponent::SpatialBlend, NoJob::AnimatorComponent::Speed, NoJob::ParticleSystemComponent::SpeedRandom, NoJob::ParticleSystemComponent::StartColor, NoJob::ParticleSystemComponent::StartLifetime, NoJob::ParticleSystemComponent::StartSize, NoJob::ParticleSystemComponent::StartSpeed, NoJob::String, NoJob::ScriptFieldValue::String, NoJob::ParticleSystemComponent::TexturePath, NoJob::AnimatorComponent::TimeSeconds, NoJob::ScriptFieldValue::Type, NoJob::ScriptFieldValue::Vec3, NoJob::AudioSourceComponent::Volume, and NoJob::Log::Warn().
Referenced by NoJob::ProjectPanel::Draw(), and Revert().
|
static |
Definition at line 281 of file PrefabSerializer.cpp.
References NoJob::Scene::DestroyEntity(), NoJob::Scene::GetChildren(), NoJob::Entity::GetComponent(), NoJob::Scene::GetParent(), NoJob::Entity::HasComponent(), Instantiate(), and NoJob::Scene::SetParent().
|
static |
Definition at line 122 of file PrefabSerializer.cpp.
Referenced by Apply(), and NoJob::ProjectAssetOperations::CreatePrefab().