Skip to content

NetSpawning Bullets #33

Answered by Kehom
croxis asked this question in Q&A
Mar 27, 2021 · 3 comments · 12 replies
Discussion options

You must be logged in to vote

Well, class_hash is actually a poor name I have chosen. "class_id" or something like that would have been a lot better. Nevertheless, yes, it is a way to allow the exact same SnapClass to handle multiple different scenes. When you are sure your snap class will handle just one single type of object then you can completely go away with the class hash.
I have named it like that because I normally take the resource path of the scene and hash it (String.hash()). Again, it's a poor name but when I realized that it was a bit too late to change!

Replies: 3 comments 12 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
12 replies
@Kehom
Comment options

@croxis
Comment options

@Kehom
Comment options

@croxis
Comment options

@Kehom
Comment options

Answer selected by croxis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants