Omar_00971 Posted February 14, 2022 Posted February 14, 2022 Basically let's say for example in a c# script we attach it as a component to a node which is an object mesh skinned. To reference it we do something like: Objectmeshskinned X; X = node as Objectmeshskinned; What would be the c++ equivalent of that?
silent Posted February 14, 2022 Posted February 14, 2022 Hi Omar, I guess you need checked_ptr_cast(): https://developer.unigine.com/en/docs/2.15/code/fundamentals/smartpointers?words=checked_ptr_cast#upcast_downcast ObjectMeshSkinnedPtr X = checked_ptr_cast<ObjectMeshSkinned>(node); How to submit a good bug report --- FTP server for test scenes and user uploads: ftp://files.unigine.com user: upload password: 6xYkd6vLYWjpW6SN
Recommended Posts