var texture = this.app.assets.get(5036732); //Getting the CubeMap
Gives you an asset, not a pc.Texture
object. To get texture of it:
var asset = this.app.assets.get(5036732); //Getting the CubeMap
var texture = assets.resource;
var renderTarget = new pc.RenderTarget(this.app.graphicsDevice, texture, {
face: 0
});
this.entity.camera.renderTarget = renderTarget;
But in your case, cubemap will contain multiple resources, each referring to separate face of a cubemap, which can be accessed from resources
property.