#ifndef PROP_DATA_MESH_H #define PROP_DATA_MESH_H #include "core/math/vector3.h" #include "prop_data_entry.h" #include "scene/resources/texture.h" #include "../../mesh_data_resource/mesh_data_resource.h" class PropDataMesh : public PropDataEntry { GDCLASS(PropDataMesh, PropDataEntry); public: Ref get_mesh() const; void set_mesh(const Ref mesh); Ref get_texture() const; void set_texture(const Ref texture); bool get_snap_to_mesh(); void set_snap_to_mesh(bool value); Vector3 get_snap_axis(); void set_snap_axis(Vector3 value); PropDataMesh(); ~PropDataMesh(); protected: static void _bind_methods(); private: bool _snap_to_mesh; Vector3 _snap_axis; Ref _mesh; Ref _texture; }; #endif