Skip to content

Instantly share code, notes, and snippets.

View lokize's full-sized avatar
👽
In another planet now...

Lokize lokize

👽
In another planet now...
  • ALIEN W3
  • Brazil
View GitHub Profile
@lokize
lokize / unitygit.md
Created July 20, 2022 00:32
unity git

Unity and Git integration

First, you have to make some configurations in the Unity project.

  1. Switch to Visible Meta Files in Edit → Project Settings → Editor → Version Control Mode
  2. Switch to Force Text in Edit → Project Settings → Editor → Asset Serialization Mode
  3. Click on Save Scene and Project from File menu.
  4. Quit Unity and then you can delete the Library and Temp directory in the project directory. You can delete everything, however keep the Assets and ProjectSettings directory.

Now you have to do the following:

// esse é o meu uploadAdapter
export default class UploadAdapter {
constructor(loader) {
// The file loader instance to use during the upload.
this.loader = loader;
}
// Starts the upload process.
upload() {
@lokize
lokize / mobile.vue
Last active January 5, 2022 11:11
Vuejs
<div v-if="!isMobile()">
<desktop>
</desktop>
</div>
<div v-else>
<mobile>
</mobile>
</div>
methods: {