Skip to content

Instantly share code, notes, and snippets.

😀
Hello World!

RayStudio raystudio9236

😀
Hello World!
View GitHub Profile
View MapGenerator.lua
MapGenerator = UGameObject:extend()
function MapGenerator:new(scene, opts)
MapGenerator.super.new(self, scene, 'Prefabs/MapGenerator', opts)
self.transform.position = Vector3.new(-100, 0, 0)
self:clear()
--找到scene里GameObject
@raystudio9236
raystudio9236 / gist:b73af340b2d4181b953c1a70f031315a
Created Nov 24, 2019 — forked from allanolivei/gist:9260107
Unity 3d : Get Selected Folder in Project Window
View gist:b73af340b2d4181b953c1a70f031315a
using UnityEngine;
using UnityEditor;
using System.Collections;
using System.IO;
public static class UnityUtil
{
public static string GetSelectedPathOrFallback()
{
string path = "Assets";
You can’t perform that action at this time.