C# 클래스 UnityPlatformer.InstancePrefab

Instance a prefab on start
상속: UnityEngine.MonoBehaviour
파일 보기 프로젝트 열기: llafuente/unity-platformer 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
attachToRoot bool
placeholder UnityEngine.Sprite
prefab UnityEngine.GameObject

공개 메소드들

메소드 설명
Awake ( ) : void

NOTE no virtual on purpose. override OnAwake

OnAwake ( bool notify = true ) : void

Instance the prefab, rename and attach it

OnDrawGizmos ( ) : void

Draw placeholder + name in editor mode.

Rename ( Transform transform ) : void

Rename logic: append counter to the name

메소드 상세

Awake() 공개 메소드

NOTE no virtual on purpose. override OnAwake
public Awake ( ) : void
리턴 void

OnAwake() 공개 메소드

Instance the prefab, rename and attach it
public OnAwake ( bool notify = true ) : void
notify bool true -> SendMessage: OnInstancePrefab
리턴 void

OnDrawGizmos() 공개 메소드

Draw placeholder + name in editor mode.
public OnDrawGizmos ( ) : void
리턴 void

Rename() 공개 메소드

Rename logic: append counter to the name
public Rename ( Transform transform ) : void
transform UnityEngine.Transform
리턴 void

프로퍼티 상세

attachToRoot 공개적으로 프로퍼티

Attach the prefab as a child or at root node.
public bool attachToRoot
리턴 bool

placeholder 공개적으로 프로퍼티

Placeholder sprite for editor, to see something
public Sprite,UnityEngine placeholder
리턴 UnityEngine.Sprite

prefab 공개적으로 프로퍼티

Prefab to instance
public GameObject,UnityEngine prefab
리턴 UnityEngine.GameObject