Overview C# plugin SDK
C: Basics Constants and types
C: Basic types Constants and types KroysVersion KroysGuid KroysTransform
C: Values Constants and types KroysValueType KroysStringView KroysValue
C: Module entry Constants and types KroysModuleInfo KroysPluginCallbacks
C: Core (all targets) Constants and types KroysFieldDesc KroysComponentTypeDesc KroysLogEntry KroysLogVisitor KroysCoreApi
C: Scene (all targets; permission scene.read / scene.write) Constants and types KroysComponentTypeInfo KroysFieldInfo KroysSceneApi
C: Tasks (editor) Constants and types KroysTaskJob KroysTaskDesc KroysTaskCallbacks KroysTaskApi
C: UI (editor; valid only inside draw callbacks) Constants and types KroysThemeColor KroysThemeMetric KroysUiApi
C: Editor Constants and types KroysCommandDesc KroysCommandCallbacks KroysPanelDesc KroysDrawArgs KroysDrawCallbacks KroysSettingsPageDesc KroysFileJob KroysImporterDesc KroysExporterDesc KroysFileJobCallbacks KroysByteSink KroysAssetTypeDesc KroysAssetTypeCallbacks KroysServiceCallbacks KroysAutomationJob KroysAutomationCallbacks KroysOperationCallbacks KroysEditorApi
C: Viewport (editor, 2.1; capability viewport-tools) Constants and types KroysViewportToolDesc KroysViewportInput KroysViewportToolCallbacks KroysCameraInfo KroysViewportApi
C: Runtime (system graph) Constants and types KroysSystemDesc KroysTickArgs KroysSystemCallbacks KroysRuntimeApi
C: Assets Constants and types KroysAssetInfo KroysAssetApi
C: Loopback networking (editor; permission network.loopback) Constants and types KroysNetApi
C: Host Constants and types KroysHost
C++ layer Functions and aliases kroys::Entity kroys::Vec3 kroys::Ui kroys::Ui::Section kroys::Ui::Table kroys::Ui::Tree kroys::Ui::Id kroys::Ui::Disabled kroys::World kroys::ComponentTypeBuilder kroys::FileJob kroys::TaskJob kroys::AutomationJob kroys::CommandOptions kroys::PanelOptions kroys::SettingsPageOptions kroys::FileConverterOptions kroys::AssetTypeOptions kroys::AssetTypeHooks kroys::ViewportToolOptions kroys::ViewportToolHooks kroys::SystemOptions kroys::Host kroys::Host::Transaction kroys::Plugin
Basics
Constants and types of this part of kroys/kroys_plugin.h.
Headerkroys/kroys_plugin.h
SDK2.2.0
REFERENCE
Constants
# #define KROYS_SDK_VERSION_MAJOR 2u Not documented yet.
constant
# #define KROYS_SDK_VERSION_MINOR 2u Not documented yet.
constant
# #define KROYS_SDK_VERSION_PATCH 0u Not documented yet.
constant
# #define KROYS_PLUGIN_EXPORT KROYS_EXTERN_C KROYS_PLUGIN_EXPORT_ATTRIBUTE Not documented yet.
constant
# #define KROYS_PLUGIN_GET_MODULE_INFO_SYMBOL "KroysPlugin_GetModuleInfo" Not documented yet.
constant
# #define KROYS_PLUGIN_START_SYMBOL "KroysPlugin_Start" Not documented yet.
constant
# #define KROYS_API_HAS (Type, pointer, member) ((pointer) != NULL && (size_t)(pointer)->structSize >= offsetof(Type, member) + sizeof(((Type*)0)->member)) True when pointer (a host table, or a struct the other side filled) is large enough to hold member of Type: KROYS_API_HAS (KroysUiApi , host->ui, ProgressBar).
constant
kroys_plugin.h #define KROYS_SDK_VERSION_MAJOR 2u
#define KROYS_SDK_VERSION_MINOR 2u
#define KROYS_SDK_VERSION_PATCH 0u
#define KROYS_PLUGIN_EXPORT KROYS_EXTERN_C KROYS_PLUGIN_EXPORT_ATTRIBUTE
#define KROYS_PLUGIN_GET_MODULE_INFO_SYMBOL "KroysPlugin_GetModuleInfo"
#define KROYS_PLUGIN_START_SYMBOL "KroysPlugin_Start"
#define KROYS_API_HAS (Type, pointer, member) ((pointer) != NULL && (size_t)(pointer)->structSize >= offsetof(Type, member) + sizeof(((Type*)0)->member))
Example
kroys_plugin.h Copy
#define KROYS_SDK_VERSION_MAJOR 2u
#define KROYS_SDK_VERSION_MINOR 2u
#define KROYS_SDK_VERSION_PATCH 0u
#define KROYS_PLUGIN_EXPORT KROYS_EXTERN_C KROYS_PLUGIN_EXPORT_ATTRIBUTE
#define KROYS_PLUGIN_GET_MODULE_INFO_SYMBOL "KroysPlugin_GetModuleInfo"
#define KROYS_PLUGIN_START_SYMBOL "KroysPlugin_Start"
#define KROYS_API_HAS (Type, pointer, member) ((pointer) != NULL && (size_t)(pointer)->structSize >= offsetof(Type, member) + sizeof(((Type*)0)->member))