From cdacfbd6f149714214d66f5862b31f1b5b6195c4 Mon Sep 17 00:00:00 2001 From: Pravus Date: Thu, 31 Oct 2024 19:09:34 +0100 Subject: [PATCH] added gltfnode proto --- .../decentraland/sdk/components/gltf_node.proto | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 proto/decentraland/sdk/components/gltf_node.proto diff --git a/proto/decentraland/sdk/components/gltf_node.proto b/proto/decentraland/sdk/components/gltf_node.proto new file mode 100644 index 00000000..79307140 --- /dev/null +++ b/proto/decentraland/sdk/components/gltf_node.proto @@ -0,0 +1,16 @@ +syntax = "proto3"; +package decentraland.sdk.components; + +import "decentraland/sdk/components/common/id.proto"; +option (common.ecs_component_id) = 1200; + +// GltfNode links a scene entity with a node from within a gltf, allowing the scene to inspect it or modify it. +// The Explorer will attach/update the following detected components in that entity: +// - Transform +// - MeshRenderer +// - MeshCollider +// - Material +message PBGltfNode { + string node_path = 1; // the node path location inside the target Gltf + uint32 gltf_container_entity = 2; // the GltfContainer entity in which to look for the child node +}