docs.unity3d.com
    目次を表示する/隠す

    Struct InstantiationParameters

    Class that contains properties to apply to instantiated objects.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEngine.ResourceManagement.ResourceProviders
    Syntax
    public struct InstantiationParameters

    Constructors

    Name Description
    InstantiationParameters(Transform, Boolean)

    Create a new InstantationParameters class that will set the parent transform and use the prefab transform.

    InstantiationParameters(Vector3, Quaternion, Transform)

    Create a new InstantationParameters class that will set the position, rotation, and Transform parent of the instance.

    Properties

    Name Description
    InstantiateInWorldPosition

    When setting the parent Transform, this sets whether to preserve instance transform relative to world space or relative to the parent.

    Parent

    Transform to set as the parent of the instantiated object.

    Position

    Position in world space to instantiate object.

    Rotation

    Rotation in world space to instantiate object.

    SetPositionRotation

    Flag to tell the IInstanceProvider whether to set the position and rotation on new instances.

    Methods

    Name Description
    Instantiate<TObject>(TObject)

    Instantiate an object with the parameters of this object.

    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)