Ads keep us online. Without them, we wouldn't exist. We don't have paywalls or sell mods - we never will. But every month we have large bills and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3

Enabling VideoPlayers via item

A Tutorial for Baldi's Basics

No ads for members. Membership is 100% free. Sign up!
Hi! Haven't done a tutorial in a while so I might as well make this since I don't know what to do

1. Make your item (have a tutorial for that)

2. Now Make a new gameObject and add a VideoPlayers component to it.

3. Make a renderTexture also and import a videoClip

4. Now insert your video clip and and render Texture into the Clip slot and RenderTexture slot (if that isn't  there make sure your render mod is set to Render Texture)

4.5 Make sure your videoplayer is set on play on awake
5. Now make a new Canvas (MAKE SURE it's a child of the VideoPlayer GameObject

6. Make a new gameObject child to the canvas and then make a Raw Image component

7. ALSO insert your renderTexture as your Texture for the RawImage

8. Set your Canvas to world space (in the canvas component)

9. Disable the Parent GameObject of the Canvas (the one with the videoplayer)

CODING:

10. Make a new GameObject variable referencing your  VideoPlayer

11. paste this if statement in your item's if statement

RaycastHit raycastHit7;
                        if (Physics.Raycast(Camera.main.ScreenPointToRay(Input.mousePosition), out raycastHit7) && (raycastHit7.collider.tag == "Object" & Vector3.Distance(this.playerTransform.position, raycastHit7.transform.position) <= 10f))
                        {
                            this.videoPlayer.SetActive(true);
                        }
Sign up to access this!

Embed

Share banner
Image URL
HTML embed code
BB embed code
Markdown embed code

Credits

Me
RealT5mpler
creating the tutorial

Submitter

RealT5mpler avatar
RealT5mpler Joined 8mo ago
Not on right ok
376 points Ranked 48605th
15 medals 3 rare
  • Returned 1000 times Medal icon
  • 25 posts awarded Exemplary Feedback Medal icon
  • Submitted 15 Tutorials Medal icon
  • One month a member Medal icon
  • Returned 100 times Medal icon
  • 1 post awarded Exemplary Feedback Medal icon
RealT5mpler
Creator
Sign up to access this!
Sign up to access this!
Sign up to access this!

Game

Sign up to access this!

Category

Details

Difficulty Level
Advanced

Attributes

Share

  • Share on Reddit
  • Share on Twitter
  • Share on Facebook
  • 2
  • 317
  • 4
  • 20d

More from Submitter

WiPs by Submitter

More Decompile Tutorials