Quantcast
Channel: Latest Questions by PEOWIfjpwoiqjf
Browsing all 20 articles
Browse latest View live

Create Transform to part of mesh?

Hi all, I'm working on a project in unity and there's a script that has a reference to a transform to a character's hand. This is used to put an item in the character's hand and have it follow it as...

View Article



Combine meshes?

Hi all, I have an object that is made up of multiple meshes. I want to combine all of these meshes into one mesh so that I can shade with transparency correctly. I have tried using...

View Article

Combine meshes with different materials

Hi all, I have two meshes that I want to merge with combine meshes but when I use the combineMeshes function, the resulting mesh uses only one material, even though the two meshes were of different...

View Article

What does mesh.optimize do?

Hi all, I have a program where I need to create a mesh every frame using combine meshes and if I don't call mesh.optimize after combining the mesh, the object will not display in the world. Why is it...

View Article

Shader Vertex Data Format

Hi, I am attempting to use the vertex data in a surface shader to get an angle. I have the camera centered at 0,0. In what coordinate system is v.vertex in the vertex function? #pragma surface surf...

View Article


Sizeof float in cg shader

I'm trying to write a shader for unity using cg, and I'd like to know what accuracy my floats have, but I can't figure out how to use the sizeof command. When I attempt to use it, I get the error:...

View Article

Unity Shader World/Object Matrix

Hi all, I'm trying to modify vertex position in the vertex shader, but this code does not work. float4 temp = mul(_Object2World, v.vertex); temp = mul(_World2Object,temp); o.pos = mul(UNITY_MATRIX_MVP,...

View Article

Box Collider Vertexes in World Space

How do I get the vertexes of a box collider in world space? (with correct rotation and scale).

View Article


Rigidbody velocity units?

What are the units of the velocity property of the rigid body? Is it units/second? units/minute?

View Article


GetAxis key hit

How do I use the Input.GetAxis in a similar way to how GetKeyDown works?

View Article

Create Transform to part of mesh?

Hi all, I'm working on a project in unity and there's a script that has a reference to a transform to a character's hand. This is used to put an item in the character's hand and have it follow it as...

View Article

Combine meshes?

Hi all, I have an object that is made up of multiple meshes. I want to combine all of these meshes into one mesh so that I can shade with transparency correctly. I have tried using...

View Article

Combine meshes with different materials

Hi all, I have two meshes that I want to merge with combine meshes but when I use the combineMeshes function, the resulting mesh uses only one material, even though the two meshes were of different...

View Article


What does mesh.optimize do?

Hi all, I have a program where I need to create a mesh every frame using combine meshes and if I don't call mesh.optimize after combining the mesh, the object will not display in the world. Why is it...

View Article

Shader Vertex Data Format

Hi, I am attempting to use the vertex data in a surface shader to get an angle. I have the camera centered at 0,0. In what coordinate system is v.vertex in the vertex function? #pragma surface surf...

View Article


Sizeof float in cg shader

I'm trying to write a shader for unity using cg, and I'd like to know what accuracy my floats have, but I can't figure out how to use the sizeof command. When I attempt to use it, I get the error:...

View Article

Unity Shader World/Object Matrix

Hi all, I'm trying to modify vertex position in the vertex shader, but this code does not work. float4 temp = mul(_Object2World, v.vertex); temp = mul(_World2Object,temp); o.pos = mul(UNITY_MATRIX_MVP,...

View Article


Box Collider Vertexes in World Space

How do I get the vertexes of a box collider in world space? (with correct rotation and scale).

View Article

Rigidbody velocity units?

What are the units of the velocity property of the rigid body? Is it units/second? units/minute?

View Article

GetAxis key hit

How do I use the Input.GetAxis in a similar way to how GetKeyDown works?

View Article
Browsing all 20 articles
Browse latest View live




Latest Images