How to influence textures, objects and scenecapturecube in-game ?

i would like to make a small setup

( for now with mouse/keyboard control but later with VR controllers )

where i can :

  • spawn as a VR player

  • influence the position of textures in-game ( so make handles for rotation , scaling and if possible even replacing textures in-game )

  • influence the position of a scenecapturecube

( i tried fixing it to a springarm like a camera and control it from there but i’m stuck since i can’t find how to attach the scenecapturecube to an object using a springarm , it seems that i cannot )

  • influence the position, rotation and scaling of objects

thanx for the help !!
George

Hey,

You can add scene capture components inside a blueprint, if you do it this way you can attach them easily to a spring arm just by parenting them to it. If you want to do it with a scene capture actor, you need to use the AttachTo functions to attach the actor to a spring arm component inside a blueprint.

To spawn as a VR player, use a spawn actor from class function and then possess it.

For textures, you want to make a number of controls inside your material editor, theres functions for texture rotations, so make scalar and vector parameters to drive them, and to change texture you want a texture parameter. Now in blueprint, ideally in construction script, you want to take your mesh, and create a dynamic material instance, and store as a variable. Now when you want to change your texture parameters. Use the dynamic material instance variable, drag off it and use a SetScalarParameter, SetVectorParameter, or SetTextureParameter. You type the name of your parameter into the Set node, and it will drive it at runtime.