- Home /
How to put gameObject in ScrollView window
Hi, I'm currently trying to use GUI.BeginScrollView, GUI.EndScrollView to scroll a window. In this window I want to place my gameObject (which is a 3D model of a skeleton), but I can't figure out how to place the gameObject inside. I know that with buttons you just call:
GUI.Button(Rect (0,0,100,20), "Button");
for instance. Could anyone help with this please?
Cheers :)
Okay I've been told that you can't do this... what would be easier: - rendering the 3D image as a 2D and putting this inside the GUI scrollview, and then tracing back using rays to figure out where was clicked - or moving the camera and "faking" the scroll window by using camera movement to update the scroll coordinates.
As a little more info, in my project the display screen is movable, when it is moved over a body it will feed back the position (using arduino and a rotary encoder), and update the image to be in the correct place.
Went with translating camera position, and got working with scroll bar and arduino :)
Your answer

Follow this Question
Related Questions
using Contains(gameObject) to find and destroy a gameObject from a list 2 Answers
Custom Editor for C# Dictionary 2 Answers
Unity UI - Data Management for GameObjects in ScrollRect/TableViews with Large Data Sets 0 Answers
Problem with ScrollView 2 Answers
GUI.BeginScrollView - How to customize the vertical scroller to add padding. 0 Answers