Quantcast
Channel: Answers by "octaviomejiadiaz"
Viewing all articles
Browse latest Browse all 8

Answer by octaviomejiadiaz

$
0
0
but this is not C++ isnt ? sorry im new on this, this is the code C++ that i want to change : i have to change all this to a touchable GameObject : if( GUI.Button( new Rect( xPos, yPos, width, height ), "Start Video Texture Two" ) ) { // create the video texture _videoTextureTwo = new VideoTexture( "skyfall.m4v", 640, 360, false, 0, true ); // apply the texture to a material and set the UVs targetTwo.renderer.sharedMaterial.mainTexture = _videoTextureTwo.texture; LiveTextureBinding.updateMaterialUVScaleForTexture( targetTwo.renderer.sharedMaterial, _videoTextureTwo.texture ); // add some event handlers _videoTextureTwo.videoDidStartEvent = () => { Debug.Log( "Video two started" ); }; _videoTextureTwo.videoDidFinishEvent = () => { // when the video finishes if we are not set to loop this instance is no longer valid and this texture is not set to loop _videoTextureTwo = null; Debug.Log( "Video two finished" ); }; } Please heeeeeelp i so stock

Viewing all articles
Browse latest Browse all 8

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>