Ask Your Question
1

What is meant by the requirement that 'GameObject' type should not be a nullable value type?

asked 2021-08-15 11:00:00 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-11 17:00:00 +0000

ladyg gravatar image

This means that a GameObject cannot be set to null, or have a null value. A GameObject is a reference type in Unity, meaning that it is a variable that holds a reference to an instance of an object. Reference types can be null, but Unity's GameObject type cannot be null because it is a value type. Therefore, attempting to set a GameObject to null will result in an error.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-08-15 11:00:00 +0000

Seen: 10 times

Last updated: Oct 11 '21