omni::core::createType
Defined in omni/core/ITypeFactory.h
- 
template<typename T = IObject>
 inline ObjectPtr<T> omni::core::createType(TypeId id, const char *moduleName = nullptr, uint32_t version = 0)
- Instantiates the given type and casts it to T. - The given type id can be an implementation id. - If the interface type T is not implemented by the type id, nullptr is returned. - See also - omni::core::ITypeFactory_abi::createType_abi() for instantiation rules.