Thomas ICHÉ
6 年前
当前提交
877ac6ac
共有 7 个文件被更改,包括 114 次插入 和 21 次删除
-
2Editor/GameViewLink/LinkGameView.cs
-
76Editor/SceneViewPOV/SceneViewPOV.cs
-
2Editor/SceneViewToolbar.cs
-
8Runtime/SceneViewPOV.meta
-
36Runtime/SceneViewPOV/ScenePOVRoot.cs
-
11Runtime/SceneViewPOV/ScenePOVRoot.cs.meta
|
|||
fileFormatVersion: 2 |
|||
guid: 23cde805c3888694799b0991bf8ef9aa |
|||
folderAsset: yes |
|||
DefaultImporter: |
|||
externalObjects: {} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
|
|||
using System.Collections; |
|||
using System.Collections.Generic; |
|||
using UnityEngine; |
|||
using UnityEngine.SceneManagement; |
|||
|
|||
namespace GameplayIngredients |
|||
{ |
|||
public class ScenePOVRoot : MonoBehaviour |
|||
{ |
|||
public Scene Scene |
|||
{ |
|||
get { return gameObject.scene; } |
|||
} |
|||
|
|||
public Transform[] AllPOV |
|||
{ |
|||
get |
|||
{ |
|||
List<Transform> all = new List<Transform>(); |
|||
for(int i = 0; i< gameObject.transform.childCount; i++) |
|||
all.Add(gameObject.transform.GetChild(i)); |
|||
return all.ToArray(); |
|||
} |
|||
} |
|||
|
|||
public void AddPOV(Transform t, string Name) |
|||
{ |
|||
var newPov = new GameObject(Name); |
|||
newPov.transform.position = t.position; |
|||
newPov.transform.rotation = t.rotation; |
|||
newPov.transform.parent = this.transform; |
|||
} |
|||
} |
|||
} |
|||
|
|||
|
|
|||
fileFormatVersion: 2 |
|||
guid: 46a30f76dc1b1664e8670a337da75c21 |
|||
MonoImporter: |
|||
externalObjects: {} |
|||
serializedVersion: 2 |
|||
defaultReferences: [] |
|||
executionOrder: 0 |
|||
icon: {instanceID: 0} |
|||
userData: |
|||
assetBundleName: |
|||
assetBundleVariant: |
撰写
预览
正在加载...
取消
保存
Reference in new issue