How can I maintain webplayer aspect ratio on a web page using CSS
I have browsed the CSS forums but nothing that they suggest for maintaining aspect ratios of images and divs seem to work? I want the player to scale fluidly if the user scales the browser window. Has...
View Articlecss(counter strike source) map into unity3d
hello everybody, Several years ago i made a CSS map of a huge building in my hometown. Well, i want to create a game based on this map. I dont want to re-model everything again, so i just want to port...
View ArticleTrying to resize Unity WebPlayer control when resizing browser
I'm trying to get a Unity WebPlayer control to resize when the browser is resized. Here's the code I think is pertinent: From various `alert()`s in the code, I can verify that `ResizeUnity()` is being...
View ArticleHow to format Unity's Webplayer
I have need to have a form on the same page as the Unity web player. I'm trying to position the form to the left of the game so that they will be side by side. I'm not familiar with CSS or div tags. I...
View Articlehow can i animate in 3ds max and get it to work right in unity
ok so what my problem is, is that i have download some css fp arms from gamebanana but they dont work properly everything works except the wrists becaus ei cant move the wrists by the bone because they...
View ArticleEmbed Unity Webplayer / Without uploading
Hey peeps Just wanted to find out if its possible to Embed Unity Webplayer game, onto a website, without uploading the unity files onto the webpage servers. So the ultimately the gamefiles would have...
View Articlecross platform enterprise UI with Unity3D
We are planning a cross platform application that has certain 3D features which we want to realise with Unity 3D. The major part of the application however consists of many forms and traditional UI,...
View ArticleEditing 'style.css' within Unity
Does it cause any problems (e.g. changing the file, its content or format, etc...) if you force-open a `style.css` file (that is part of a Unity application) through `Notepad`?
View ArticleHow to align a Rect() to the bottom right of the screen
I'm trying to create a rect of text at the bottom right of the screen. Maybe because I'm a web developer, where stuff like this is easy I'm searching for a more sensble way. Surely there's a way to do...
View ArticleWebplayer interaction between 3d scene and text on webpage
Is it possible to interact between the objects of a scene and the text contained in the same webpage(which contains the player). As an example, let's say I want to change the color of an object by...
View ArticleDisable item after 10 shots.
Hello how can I disable an object after you press 10 times the left-muose? This is the script that I'm using, but does not work very well. My script. #pragma strict var myTrigger : GameObject; var...
View ArticlePlugins for web dev languages
Does anyone know of any plugins that can be used to code say html or css or even php in Unity? Im just looking for a possibility to use such languages in the game.
View ArticleUntentional CSS property padding-left: 15px on code tags?
Looks like the `` tag is unintentionally using `padding-left: 15px`. **How things look:** ![Incorrect padding on code snippets][1] **How things should look:** ![Correct padding on code snippets][2] ---...
View ArticleCorrection of input position after scaling of WebGL canvas in css
I already saw this issue described on this forum, but unfortunately did not find an answer yet (especially [here][1] question from @Charles-Van-Norman) The final rendering of my WebGL canvas in...
View ArticleScale Unity WebGL Canvas to fit browser window
Hi dear community. I recently updated to Unity 5.6. For WebGL a lot of things have changed since 5.4. I wanted to know how to automatically adjust the game canvas to fill the whole browser window. I...
View Article[Unity Answers] Inline Code has incorrect padding-left attribute
This Meta post refers to the question unity answers questions form: answers.unity3d.com/questions/ask.html -------------------------- When using inline code via backticks, the inline code incorrectly...
View ArticleWebGL on LG Smart TV
Hi, currently I'm developing app for LG Smart TV and I see no build options in Unity (Samsung Smart TV not working). In LG website I see only possibility to crate app in HTML5/CSS/JS. I was wondering...
View ArticleDocumentation for Asset Store
I have C # scripts in my package, I know I need to create the documentation for my code. Can I create the documentation not in HTML? Can I create css and js scripts from docs.untiy3d.com?
View ArticleScale WebGL cavas to browser window size
I'm trying to scale Unity WebGL content based on the contents of the window. I could manage this on Unity 5.5.4, with the following HTML. * { margin: 0; padding: 0; } canvas { width: 100%; height:...
View ArticleHow to add post from wordpress in unity?
Hello everyone! I'm trying to take a section from wordpress website and add it in my unity app. I have used Wp Rest API for catch the url of the post in the website, after that i download the file json...
View ArticleExtend WebGL Canvas to fit browser window with respect to the game's aspect...
Hi dear community, I'd like to automatically adjust the game canvas to fill the current browser window with respect to game's aspect ratio. Default canvas width is set to 720px and default canvas...
View ArticleDelaying WebGL player loading until user input
Hey there! I'm trying to stop WebGL builds from loading as soon as the website loads. What I want is for the user to have to click on the player area to load the game. The closest solution I could find...
View ArticleHow to make transparent background of body when move cursor to the drop down...
just like amazon did.,
View ArticleCommunication between WebGL and .jslib
As mentioned in the doc [here][1] Is there any way to communicate between the .jslib script and the .html of the WebGL build? How do i reference from the script to the .html file? [1]:...
View ArticleHow to use U.I.Elements/ U.I.Builder to access bools/toggles?
Hello, and thank you. I have 3 main questions regarding U.I. Elements/ U.I. Builder. --- 1. Am I correct in thinking that the new U.I. Builder window can be used to expand the Editor/Inspector? 2. If...
View ArticleWEBGL Loading bar not showing on Microsoft Edge Unity 2020.1
Hi! I tried my WEBGL Project for the first time on Microsoft Edge, and it looks like the loading bar isn't showing the download progression. Here is the code generated by the Webgl Template of Unity...
View ArticleScaling Unity WebGL Canvas causes a bad performance
Hello. I'm scaling WebGL canvas according to the size of the browser window as below. This works well as I want, but the game performance becomes quite bad when the canvas is big, especially when...
View ArticleIn WebGL, is it possible to make UI Coordinate scale with CSS style?
Hello, I am using Unity 2021.1.28, built to WebGL. What I was trying to do, is to (A) force the render resolution of my WebGL build to be 1280x720, while (B) scaling it to be displayed fullscreen in...
View ArticleHow to convert UI Document made in UI Builder to HMTL?
I am making a UI Document and then I need to generate HTML code from it so that I can embed it on a website. Help, please? ![alt text][1] [1]: /storage/temp/194377-screenshot-from-2022-03-23-21-19-40.png
View ArticleDoes UI Toolkit support css media queries?
I am trying to use an [@media][1] query for screen width to apply different styles for different screen sizes, but it doesn't appear to be working. I've written the following directly in the style...
View Article