Quantcast
Channel: Latest Questions by Yanger_xy
Browsing index pages (61 articles)

Performance between Assigned Transform and Transform.Find("Path/Target")...

Performance between *Assigned Transform* and *Transform.Find("Path/Target")* using absolute path? Which one of them is more efficient? Example code: public class TestA : MonoBehaviour { //Transform's...

View Article


How to synchronize animation in Unity4.x

Hi, I want to synchronize animations with networkView, i am now synchronizing the animator state using networkView.PRC function, below is the example code: [RPC] void PlayAnimation(bool play, float tm)...

View Article


Do i need recalculate uv coordinate after modifying mesh vertices

Hi, Do i need recalculate uv coordinate after modifying mesh vertices, i want to adjust the image's shape by modifying the mapped mesh's vertices, do i need recalculating the mesh's uv? Thanks.

View Article

How can i sync between computers

I have a 360 degree system which composed by 8 slaves and 1 server. I want to sync between using RPC, i tried like this: void Update() { if (Network.isServer){ networkView.RPC("SendSyncPos",...

View Article

synchronization between clusters

Hi, i have a 360 degree multi-projector system. There are 8 projectors connected with 8 computers respectively within the local area network(the speed can reach kilomega).I want to sync between 8...

View Article


projection matrix

Hi, I want to customize camera's projectionMatrix, but i do not familiar with its operation, i just know the matrix's basic linear operations, but confused about its geometric significance, for...

View Article

what's the range of position's element's range after multiply UNITY_MATRIX_MVP

Hi, What's the range of the vertex position in shader after multiplying the UNITY_MATRIX_MVP I want to do some geometry operations on each vertex.And are there any good ways in debugging shader?...

View Article

keystone correction/Image Effect

Hi, I want to do some keystone correction with my whole game scene,it seems that using the Image Effect (Shader) can do this.I have learned the shader basics, and know a little about the render...

View Article


Shader Blending OneMinusSrcColor etc

Hi, I am newbie in shader, and now i am learning it.I am learning the basic syntax now, and stuck in Shader Blending, i am not clear about the official document's description:...

View Article


How to save terrain data generated at runtime permanently

Hello everyone. I generate a lot of terrain at runtime from DEM, and i wanna to save them permanently, how can i realize it? Use AssetBundle or ?

View Article

Animation state Synchronization in Multiplayer

hello,everyone! I am a newbie in network programming, i have learned some basic usage of network by watching M2H tutorial,such as *NetworkView,RPC* etc. Now i can synchronize the transform, script and...

View Article

heightmapWidth and heightmapHeight always equal

heightmapWidth and heightmapHeight always equal, can't it not equal? i have a dem data which has 1013 columns and 980 rows, and i wanna to set terrain's resolution to 1013*980 so that 1 unit equals to...

View Article

Modal Dialog

Hello, everyone! I wanna to write a function that show a dialog window, the only method i thought about is that defining a global boolean variable to record whether we are showing a gui, if so, i must...

View Article


terrain split

Hello,everyone. I have to generate a very big terrain at runtime, it is too big to show. i wanna to split it and dynamicly load it.I have no idea now. Thanks!

View Article

GUI Elements' message handlling

Hello, everyone! I wanna to handle the GUI Controls' messages .for example, textField's KeyDown message. How can i realize it? Thanks a lot!

View Article


How to input float in textfiled and and let the scrollbar change its value at...

Hello, everyone.I wanna to draw a Scrollbar and a textfield at the same time.And when the Scrollbar scroll, the textfield's value change with it, also, when the textfield's text changed, the Scrollbar...

View Article

How to Control GUILayout.Window's Size

Hello,everyone. I wanna to draw a window with some other controls in it using GUILayout.Window, But i can not control the window's size, for it is a little small for my application after GUILayout...

View Article


GUI not work after building

hello, everyone! I create a 'menuframework ' using gui, it works well in debug mode,but after building it, the menuItem can not shown when i click popupMenu. here is the diagram: ![alt text][1] [1]:...

View Article

How to confirm the vertex of a mesh that mouse in and change its texture

Hello, everyone. How to confirm the vertex of a mesh that mouse in and change its texture, i wanna to draw a hallway with mesh dynamicly and there will be some bombs in the hallway, when the bomb...

View Article

How to align texture when comes to a corner

I draw a rect tunnel using Mesh, It all works well. What is the problem is:How can i align its texture with the tunnel.For example, when the tunnel turns off, the texture i assigned does turn at all by...

View Article
Browsing index pages (61 articles)


Latest Images