#Issue with placing windows

118 messages · Page 1 of 1 (latest)

charred patio
#

Hey there, so I've been working on my slots for the building I am currently making and I'm experiencing the issue that I can't place the windows inside the window frame properly. Does anyone know how I can fix this?

#

This is my setup for the window component

heavy nebula
#

But doors place fine?

#

What happens if you try to place the window from the other side?

charred patio
heavy nebula
#

huh strange

charred patio
#

I have a really weird thing here, the window doesn't snap at all and I can vary the position of it (I can move it in there but it's gonna be really annoying since some windows are really buggy and dont work at all)

#

*partially move it into the frame, some stuff is still buggy

heavy nebula
#

maybe its due to the low float values the collider has

#

try setting the Center to be exactly 0 0 0

charred patio
#

do you mean perfectly in the middle of the frame?

#

This issue also appears on smaller windows, which also have a good frame.

heavy nebula
#

why did you add that?

#

the example doesnt have it

#

Change the Center to be 0 0 0

charred patio
#

This is my first time actually modding with unity, and a tutorial added that so I just did as well

heavy nebula
charred patio
#

How do I change the center tho?

#

wait nvm

heavy nebula
#

input the values into the fields

heavy nebula
#

Or just start from that tbh

#

all you gotta do is change the model anyways

charred patio
#

Alright, I changed the center to 0 0 0 and removed rigidbody, but that still did not fix the issue

opal glacier
#

Does the 'Slots' prefab have the same transformations as the 'Object' prefab?

#

Are you using a custom window or one from in-game?

charred patio
#

I might have found the issue, but I am using a custom one since I was following a tutorial. The tutorial told me to create an empty object, designate it as logic for both and copy the components from the doors that were provided by another building

heavy nebula
#

No that sounds fine

charred patio
heavy nebula
#

Try copying the Slot from the example asset

charred patio
#

Where is the example asset?

#

I tried copying a window from a vanilla building and it is set up just like my slot.

#

With the exception being that it has the rigidbody modifier

heavy nebula
#

Thats what I meant

#

huh

#

Try doing that again

#

but change NOTHING

opal glacier
#

We really need an updated tutorial on this.

charred patio
heavy nebula
#

if you bundle the example

#

does it work?

charred patio
#

bundled it, doesn't work

heavy nebula
#

how

#

reimport that example

#

bundle again

charred patio
#

if we hop in vc i might be able to show you this stuff easier

heavy nebula
#

nvm

charred patio
#

(if ur down for it)

heavy nebula
#

no

charred patio
#

alright

heavy nebula
charred patio
#

the building is in large, yes

#

alright

heavy nebula
#

oh

#

I see

#

its just rotated incorrectly ig?

charred patio
#

ill show you the area with the issue, the hitbox of the window is weirdly placed

heavy nebula
#

try making X and Z 0

#

and then just rotate it using Y

charred patio
#

this is what it looks like when x and z are 0

#

with y 0 its this

heavy nebula
#

hm

charred patio
heavy nebula
#

let me look at the example again

#

nvm

#

weird that the example also doesnt bundle correctly

#

did you try re-importing it?

charred patio
#

Yes.

heavy nebula
#

alright new idea

#

rotate it by 90 degrees in the X axis

#

the window slot

#

see if that does anything

charred patio
#

the example one or the issue one i showed in the clip?

heavy nebula
#

isnt that the example?

#

the one in the clip?

charred patio
#

nope, the example one was the one in the middle of the air

charred patio
#

i didnt move it at all since u told me to

heavy nebula
#

wait

#

So what did you do again?

#

get the Slots from the example asset?

#

and bundle that?

#

Did you ever try bundling the LITERAL example asset?

#

like not your building

#

but the example

charred patio
#

I imported the example window (this one), and didnt move it. Bundled it and tested ingame, didn't work. Removed it, reimported it and rebundled it. Didn't work, now im here

heavy nebula
charred patio
#

imma try bundling the example asset then

#

should i leave the slots in the position that they are in or move them to fit to the frame?

heavy nebula
#

Move what?

charred patio
#

(from one of the objects in the coremasterbundle)

charred patio
heavy nebula
#

On what?

charred patio
#

should i keep the slots as they are in this current position to test them or should i move them to fit into the window frame itself

heavy nebula
#

That

#

is

#

not

#

what

#

I

#

mean

#

You want to bundle it all

charred patio
#

thats what im literally doing this entire time

heavy nebula
#

But you have your own Object

#

I want you to bundle the literal example

charred patio
#

i see

#

for some reason the model just wont import at all

heavy nebula
#

Whats your Object rotation?

#

is it the same as your Slots?

charred patio
heavy nebula
#

that means it didnt load it properly

#

it will say why in error logs or in your logs

charred patio
#

although i have it in the folder i bundle